/* ============================
   Mobile Subnav Styles (≤768px)
   ============================ */

/* Default: hide on desktop */
#mobile-subnav {
  display: none !important;
}

@media (max-width: 768px) {
  #mobile-subnav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f9f7f5;
    font-family: 'Playfair Display', serif;
    padding: 0.6em 0 0.6em 0;
    margin-top: 40px;
    border-top: 1px solid #e0dcd6;
    border-bottom: 1px solid #e0dcd6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    position: relative;
    text-align: center;
  }

  #subnav-toggle {
    width: 100%;
    background: #f2efec;
    border: none;
    font-size: 1.05em;
    font-weight: 600;
    padding: 0.6em 1em;
    text-align: center;
    color: #444;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 1px solid #e0dcd6;
  }

  #subnav-toggle .chevron {
    display: inline-block;
    margin-left: 0.2em;
	 font-size: 1.1em; /* adjust to your taste */
    transition: transform 0.3s ease;
  }

  #subnav-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }

  #subnav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  #subnav-links li {
    border-bottom: 1px solid #eae7e2;
  }

  #subnav-links a {
    display: block;
    padding: 0.75em 1.5em;
    font-size: 1.05em;
    color: #3d3d3d;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  #subnav-links a:hover {
    color: #b59852;
    background-color: #f2efec;
  }

  #subnav-links a#preconfiguredlink {
    font-size: 0.95em;
    font-style: italic;
    opacity: 0.85;
    padding-left: 2em;
  }

  /* Manual active highlight */
  #subnav-links a .active-manual {
    color: #ad8a3c;
    font-weight: 700;
    position: relative;
    display: inline-block;
  }

  #subnav-links a .active-manual::after {
    content: "";
    display: block;
    margin: 0.3em auto 0 auto;
    width: 24px;
    height: 2px;
    background-color: #ad8a3c;
    border-radius: 1px;
  }
}
