/* ============================================
   FOOTER PAGES – Banner, Navigation, Content & Footer
   (No global font-size overrides – respects browser defaults)
   ============================================ */

/* ---------- RESET & VARIABLES ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #f7f4ef;
  --paper-dark: #ede9e1;
  --ink: #1c1a17;
  --ink-mid: #4a4640;
  --ink-light: #8c877f;
  --red: #8b2020;
  --red-soft: #c14040;
  --red-pale: #f0e6e6;
  --border: rgba(28, 26, 23, 0.12);
  --border-strong: rgba(28, 26, 23, 0.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  /* NO font-size override – keeps browser default (16px) */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px base */
  line-height: 1.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ---------- BANNER ---------- */
.banner {
  padding: 2rem 4rem 1.5rem;
  border-bottom: 0.0625rem solid var(--border);
}

.banner-inner {
  max-width: 67.5rem;                       /* 1080px */
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-mark {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  /*width: auto;
  height: auto;
  flex-shrink: 0;*/
}

/* "Retour au site" link – now non‑absolute, sits inline */
.banner-home {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-decoration: none;
  text-transform: uppercase;
  margin-left: auto;
  border-bottom: 0.0625rem solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.banner-home:hover {
  color: var(--red);
  border-bottom-color: var(--red-pale);
}


 /* ─── STICKY NAV ─── */
 /* ─── STICKY NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(0.375rem);             /* was 6px */
  border-bottom: 0.0625rem solid var(--border-strong);
  box-shadow: 0 0.0625rem 0.5rem rgba(28,26,23,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90%;                               /* keeps some breathing room */
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 4rem;
}

.nav-tabs {
  display: flex;
  flex: 1;
  justify-content: space-between;               /* spreads tabs evenly */
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
}

.nav-tabs li a {
  display: block;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 0.125rem solid transparent;    /* was 2px */
  transition: color 0.2s, border-color 0.2s;
}
.nav-tabs li a:hover,
.nav-tabs li a.active {
  color: var(--red);
  border-bottom-color: var(--red-soft);
}
.nav-tabs li a.active {
  color: var(--red);
  font-weight: 400;
}

/* If you use the foot-tab class, add it here */
.foot-tab {
  border-bottom: 0.125rem solid var(--red-soft) !important;
}

.nav-actions {
  position: sticky;
  top: 5rem;
  left: 85%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-top: 2rem;
  width: fit-content;
}

/* search */
.nav-search {
  position: relative;
  margin-left: 1rem;
}

.nav-search input {
  background: var(--paper-dark);
  border: 0.0625rem solid var(--border-strong);
  border-radius: 1.25rem;                       /* was 20px */
  padding: 0.4rem 1rem 0.4rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  width: clamp(8rem, 12vw, 13.5rem);
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.nav-search input:focus {
  border-color: var(--red-soft);
  width: 11.25rem;
}
.nav-search input::placeholder {
  color: var(--ink-light);
}
.nav-search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  stroke: var(--ink-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
 
 
 /*
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,244,239,0.97);
    backdrop-filter: blur(0.375rem);             
    border-bottom: 0.0625rem solid var(--border-strong);
    box-shadow: 0 0.0625rem 0.5rem rgba(28,26,23,0.06);
  }
  .nav-inner {
    max-width: 100rem;                           
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-tabs {
    display: flex;
    list-style: none;
    flex: 1;
  }
  .nav-tabs li a {
    display: block;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    border-bottom: 0.125rem solid transparent;  
    transition: color 0.2s, border-color 0.2s;
    
  }

  .foot-tab {
  border-bottom: 0.125rem solid var(--red-soft) !important;
}

  .nav-tabs li a:hover,
  .nav-tabs li a.active {
    color: var(--red);
    border-bottom-color: var(--red-soft);
  }
  
  .nav-tabs li a.active {
    color: var(--red);
    font-weight: 400;
  }*/








  /* search */

  /*
  .nav-search {
    position: relative;
    margin-left: 1rem;
  }
  .nav-search input {
    background: var(--paper-dark);
    border: 0.0625rem solid var(--border-strong);
    border-radius: 1.25rem;                     
    padding: 0.4rem 1rem 0.4rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink);
    width: 11.25rem;                            
    outline: none;
    transition: border-color 0.2s, width 0.3s;
  }
  .nav-search input:focus {
    border-color: var(--red-soft);
    width: 11.25rem;
  }
  .nav-search input::placeholder { color: var(--ink-light); }
  .nav-search svg {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.875rem;                            
    height: 0.875rem;
    stroke: var(--ink-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
  }
*/

/* ---------- STICKY NAVIGATION (commented out) ---------- */
/*
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 8px rgba(28, 26, 23, 0.06);
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 0;
 
}

.nav-tabs {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-tabs li a {
  display: block;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-tabs li a:hover,
.nav-tabs li a.active {
  color: var(--red);
  border-bottom-color: var(--red-soft);
}


.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--ink-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.nav-search input {
  background: var(--paper-dark);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 0.4rem 1rem 0.4rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  width: 180px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}

.nav-search input:focus {
  border-color: var(--red-soft);
  width: 200px;
}

.nav-search input::placeholder {
  color: var(--ink-light);
}

.nav-search button {
  background: var(--paper-dark);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.nav-search button:hover {
  background: var(--red-pale);
  border-color: var(--red-soft);
}
*/


/* ---------- PAGE MAIN LAYOUT ---------- */
.page-wrap {
                            /* 1080px */
  /*margin: 3rem auto;
  padding: 0 4rem;*/
}

.article-wrap {
  margin: 3rem auto;
  padding: 0 4rem;
max-width: 67.5rem;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  border-left: 0.1875rem solid var(--red-soft);  /* 3px */
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.page-intro {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
  padding-left: 1.25rem;
  border-left: 0.0625rem solid var(--border);
  margin-top: 1rem;
}

/* ---------- PROSE, SECTIONS, LISTS ---------- */
.prose-section {
  margin-bottom: 2.5rem;
  text-align: center; 
  margin-bottom: 2rem;
}


.remerciementsLi {
    color:var(--red); text-decoration:underline;
}

.remerciements {
    font-style: italic;
}

/*prose for Contact page*/
.proseContact {
    margin-top:1.2rem;
}

.prose p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 400;
}

.prose a {
  color: var(--red-soft);
  text-decoration: none;
  border-bottom: 0.0625rem solid var(--red-pale);
  transition: color 0.2s, border-color 0.2s;
}

.prose a:hover {
  color: var(--red);
  border-color: var(--red-soft);
}

.section-rule {
  border: none;
  border-top: 0.0625rem solid rgba(28, 26, 23, 0.1);
  margin: 2rem 0 1.8rem;
}

.section-rule-accent {
  width: 2.5rem;
  height: 0.1875rem;                            /* 3px */
  background: var(--red-soft);
  margin-top: -2.2rem;
  margin-bottom: 1.8rem;
}

.block-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.block-subheading {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

/* Lists */
.prose-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top:1rem;
}

.prose-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}

.prose-list li::before {
  content: '';
  flex-shrink: 0;
  width: 0.3125rem;                             /* 5px */
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--red);
  margin-top: 0.6em;
}

/* Contact block */
.contact-block {
  background: #fff;
  border: 0.0625rem solid var(--border-strong);
  border-radius: 0.1875rem;                     /* 3px */
  padding: 1.5rem 1.8rem;
  margin: 1.2rem 0;
}

/* Contact page */
.contact-block-Contact {
    margin-top:1.2rem;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 0.0625rem solid var(--border);
  font-size: 0.88rem;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  min-width: 6.25rem;                           /* 100px */
  font-weight: 400;
}

.contact-value {
  color: var(--ink-mid);
  font-weight: 300;
}

.contact-value a {
  color: var(--red-soft);
  text-decoration: none;
  border-bottom: 0.0625rem solid var(--red-pale);
}

.contact-value a:hover {
  color: var(--red);
}

/* Legal note */
.legal-note {
  font-size: 0.75rem;
  color: var(--ink-light);
  line-height: 1.6;
  border-top: 0.0625rem solid var(--border);
  padding-top: 1rem;
  margin-top: 1.2rem;
  font-weight: 300;
  font-style: italic;
}


/*Avertissement Medical page*/
.info-label {
    color:var(--red);
}

.info-box {
    margin-bottom:2.5rem;border-left-color:var(--red);background:var(--red-pale);
    text-align: justify; padding: 0.5rem;
}

.Urgences {
    color:var(--ink) !important;font-weight:400 !important;
}

/* Contact Page */
.info-box-contact {
    margin-top: 1.2rem;
}

/* ---------- FOOTER ---------- */
/*
footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.75);
  padding: 2.5rem 4rem 1.8rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 67.5rem;                          
  margin: 0 auto;
}

.footer-links-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 0.0625rem solid rgba(247, 244, 239, 0.08);
}

.footer-links-row a {
  font-size: 0.75rem;
  color: rgba(247, 244, 239, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-row a:hover,
.footer-links-row a.current {
  color: #e8a0a0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.7rem;
  color: rgba(247, 244, 239, 0.3);
}

.footer-bottom span {
  opacity: 0.7;
}
  */






/* New Footer */

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 3rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 67.5rem; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(247,244,239,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.newsletter-desc {
  font-size: 0.82rem;
  color: rgba(247,244,239,0.55);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.newsletter-form { display: flex; }
.newsletter-form input {
  flex: 1;
  background: rgba(247,244,239,0.07);
  border: 0.0625rem solid rgba(247,244,239,0.15);
  border-right: none;
  color: rgba(247,244,239,0.9);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem;
  outline: none;
  border-radius: 0.125rem 0 0 0.125rem;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(247,244,239,0.25); }
.newsletter-form input:focus { border-color: rgba(193,64,64,0.5); }
.newsletter-form button {
  background: var(--red);
  border: 0.0625rem solid var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: 0 0.125rem 0.125rem 0;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-soft); }
.newsletter-note {
  font-size: 0.69rem;
  color: rgba(247,244,239,0.25);
  margin-top: 0.5rem;
}


.NewsLetter {
    position:absolute; left:-9999px;
}



.footer-right { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-links-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
}
.footer-links-horizontal li a {
  font-size: 0.79rem;
  color: rgba(247,244,239,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-horizontal li a:hover { color: #e8a0a0; }
.share-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0.0625rem solid rgba(247,244,239,0.18);
  color: rgba(247,244,239,0.55);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.125rem;
  transition: all 0.2s;
}
.share-trigger-btn:hover {
  border-color: rgba(193,64,64,0.4);
  color: #e8a0a0;
}
.footer-bottom {
  border-top: 0.0625rem solid rgba(247,244,239,0.07);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(247,244,239,0.28);
}
.footer-bottom a { color: rgba(247,244,239,0.28); text-decoration: none; }
.footer-bottom a:hover { color: #e8a0a0; }

/* ─── SHARE MODAL ─── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.share-modal {
  background: #222220;
  border: 0.0625rem solid rgba(247,244,239,0.12);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;            /* was 8px */
  padding: 1.5rem 1.75rem 2rem;
  width: 100%;
  max-width: 30rem;                             /* was 480px (30rem) */
  animation: slideUp 0.22s ease;
}
@keyframes slideUp {
  from { transform: translateY(2.5rem); opacity: 0; }   /* was 40px */
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(247,244,239,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-close {
  background: none;
  border: none;
  color: rgba(247,244,239,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.125rem;
  transition: color 0.15s;
}
.modal-close:hover { color: rgba(247,244,239,0.8); }
.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.share-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(247,244,239,0.05);
  border: 0.0625rem solid rgba(247,244,239,0.1);
  color: rgba(247,244,239,0.7);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: 0.1875rem;                     /* was 3px */
  transition: all 0.18s;
  text-align: left;
  width: 100%;
}
.share-option:hover {
  background: rgba(247,244,239,0.1);
  border-color: rgba(193,64,64,0.35);
  color: #fff;
}
.share-option.copied { border-color: rgba(80,180,100,0.5); color: #90d4a0; }
.share-option-full { grid-column: 1 / -1; }

/* ─── SOCIAL LINKS ─── */
.social-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;                              /* was 34px */
  height: 2.125rem;
  border: 0.0625rem solid rgba(247,244,239,0.15);
  border-radius: 0.125rem;
  color: rgba(247,244,239,0.6);
  text-decoration: none;
  font-size: 0.875rem;                          /* was 14px */
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: rgba(193,64,64,0.5); color: #e8a0a0; }



/* ---------- RESPONSIVE ---------- */
@media (max-width: 50em) {                     /* 800px */
  .banner {
    padding: 1.2rem 1.5rem;
  }

  .nav-inner {
    padding: 0 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-tabs {
    justify-content: center;
    gap: 0.1rem;
  }

  .nav-tabs li a {
    padding: 0.7rem 0.8rem;
    font-size: 0.7rem;
    white-space: normal;
  }

  .nav-search {
    justify-content: center;
    margin-bottom: 0.6rem;
  }

  .nav-search input {
    width: 100%;
    max-width: 15rem;                           /* 240px */
  }

  .page-wrap {
    padding: 0 1.5rem;
    margin: 2rem auto;
  }

  .page-title {
    font-size: 1.6rem;
  }

  footer {
    padding: 1.8rem 1.5rem;
  }
}

@media (max-width: 31.25em) {                  /* 500px */
  .banner-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .banner-home {
    margin-left: 0;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }
}







/* Search module */

/* search */
.nav-actions {
  position: sticky; top: 5rem; left: 85%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-top: 2rem;
  width: fit-content;
}

.nav-search {
  position: relative;
  margin-left: 1rem;
}


.nav-search input {
  background: var(--paper-dark);
  border: 0.0625rem solid var(--border-strong);  /* was 1px */
  border-radius: 1.25rem;                       /* was 20px */
  padding: 0.4rem 1rem 0.4rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  width: clamp(8rem, 12vw, 13.5rem);
  /*width: 11.25rem;  */                            /* was 180px */
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.nav-search input:focus {
  border-color: var(--red-soft);
  width: 11.25rem;
}
.nav-search input::placeholder { color: var(--ink-light); }
.nav-search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;                              /* was 14px */
  height: 0.875rem;
  stroke: var(--ink-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}





/*
 * search.css — Drop-in search modal styles
 * -----------------------------------------
 * Uses CSS custom properties so it inherits your site's existing colours.
 * Override any variable in your own stylesheet if needed.
 *
 * Assumed variables from your site (fallbacks provided):
 *   --bg, --text, --border, --accent
 *
 * All px values converted to rem (base 16px = 1rem) for responsive scaling.
 */

/* ── Local fallbacks (used only if site variables are absent) ───────────── */
.search-overlay {
  --_bg:      var(--bg,      #ffffff);
  --_text:    var(--text,    #1a1a1a);
  --_border:  var(--border,  #e0e0e0);
  --_accent:  var(--accent,  #0057ff);
  --_muted:   var(--muted,   #6b6b6b);
  --_surface: var(--surface, #f5f5f5);
  --_radius:  var(--radius,  0.5rem);
}

/* ── Overlay / backdrop ─────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(0.1875rem);                  /* was 3px */
  -webkit-backdrop-filter: blur(0.1875rem);

  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(3rem, 10vh, 6rem);
  padding-inline: 1rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal box ──────────────────────────────────────────────────────────── */
.search-modal {
  background: var(--_bg);
  color: var(--_text);
  border: 0.0625rem solid var(--_border);            /* was 1px */
  border-radius: var(--_radius);
  box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.18);  /* was 8px 40px */
  width: 100%;
  max-width: 40rem;                                  /* was 640px */
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  transform: translateY(-0.5rem);                    /* was -8px */
  transition: transform 0.18s ease;
}

.search-overlay.is-open .search-modal {
  transform: translateY(0);
}

/* ── Header row ─────────────────────────────────────────────────────────── */
.search-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid var(--_border);
  flex-shrink: 0;
}

/* Search icon */
.search-icon {
  flex-shrink: 0;
  color: var(--_muted);
  display: flex;
  align-items: center;
}

.search-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Input */
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--_text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  padding: 0.15rem 0;
  /* Reset browser search input extras */
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--_muted);
}

/* Remove the browser-native ✕ clear button */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Close button */
.search-close-btn {
  flex-shrink: 0;
  background: var(--_surface);
  border: 0.0625rem solid var(--_border);
  border-radius: 0.25rem;                            /* was 4px */
  color: var(--_muted);
  font-size: 0.7rem;
  font-family: inherit;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.12s;
}

.search-close-btn:hover {
  background: var(--_border);
}

/* Back button mobile for desktop */
.bk-btn-mob {
    display: none;
}

.bk-btn-dsk {
    display: block;
}

/* ── Status message ─────────────────────────────────────────────────────── */
.search-status {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--_muted);
  margin: 0;
}

/* ── Results list ───────────────────────────────────────────────────────── */
.search-results {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  overflow-y: auto;
  flex: 1;
  /* Smooth scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--_border) transparent;
}

.search-results::-webkit-scrollbar {
  width: 0.25rem;                                    /* was 4px */
}
.search-results::-webkit-scrollbar-track {
  background: transparent;
}
.search-results::-webkit-scrollbar-thumb {
  background: var(--_border);
  border-radius: 0.125rem;                           /* was 2px */
}

/* ── Single result ──────────────────────────────────────────────────────── */
.search-result-item {
  padding: 0;
}

.search-result-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  border-radius: 0;
}

.search-result-link:hover,
.search-result-item.is-active .search-result-link {
  background: var(--_surface);
}

.search-result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--_text);
  line-height: 1.35;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--_muted);
}

.search-result-category {
  background: var(--_surface);
  border: 0.0625rem solid var(--_border);
  border-radius: 0.1875rem;                          /* was 3px */
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--_muted);
}

.search-result-date {
  color: var(--_muted);
}

.search-result-snippet {
  font-size: 0.8125rem;
  color: var(--_muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Highlight marks */
.search-result-title mark,
.search-result-snippet mark {
  background: color-mix(in srgb, var(--_accent) 18%, transparent);
  color: inherit;
  border-radius: 0.125rem;                           /* was 2px */
  padding: 0 0.0625rem;                              /* was 1px */
  font-style: inherit;
}

/* No-results state */
.search-no-results {
  padding: 1.25rem 1rem;
  color: var(--_muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ── Keyboard hint footer ───────────────────────────────────────────────── */
.search-hint {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-top: 0.0625rem solid var(--_border);
  font-size: 0.7rem;
  color: var(--_muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.search-hint kbd {
  display: inline-block;
  background: var(--_surface);
  border: 0.0625rem solid var(--_border);
  border-radius: 0.1875rem;                          /* was 3px */
  padding: 0.05rem 0.35rem;
  font-size: 0.65rem;
  font-family: inherit;
  line-height: 1.6;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 30rem) {                          /* was 480px */
  .search-overlay {
    padding-top: 0;
    align-items: flex-end;
  }

  .search-modal {
    max-width: 100%;
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    transform: translateY(0.75rem);                  /* was 12px */
  }

  .search-overlay.is-open .search-modal {
    transform: translateY(0);
  }

  .search-hint {
    display: none;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .search-overlay,
  .search-modal {
    transition: none;
  }
}





/*////////////////// News letter feedback ///////////////////*/
.feedback-msg {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feedback-msg.show {
    opacity: 1;
}
.feedback-msg.success {
    color: #2e7d32; /* green */
}
.feedback-msg.error {
    color: #c62828; /* red */
}






/* Hamburger menu */
/* ============================================
   HAMBURGER MENU (mobile first)
   ============================================ */

/* Hide hamburger on desktop by default */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: var(--ink);
  margin: 0.3rem 0;
  transition: 0.2s;
  border-radius: 0.0625rem;
}

/* Mobile nav wrapper */
.nav-tabs-wrapper {
  flex: 1;
}

/* Mobile: 900px and below */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-tabs-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.98);
    backdrop-filter: blur(0.5rem);
    border-bottom: 0.0625rem solid var(--border-strong);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .nav-tabs-wrapper.open {
    max-height: 35rem;   /* enough for all items */
  }

  .nav-tabs {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-tabs li a {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-tabs li a:hover,
  .nav-tabs li a.active {
    background: var(--red-pale);
    border-bottom-color: transparent;
  }

  /* Keep search aligned */
  .nav-actions {
    margin-left: auto;
  }

  .nav-inner {
    display: flex; flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0rem;
  }

  .nav-actions {
    margin-top: 0.5rem;
  }
  
   /* Back to site hide button css */
  .bk-btn-mob {
      display: block;
  }
  .bk-btn-dsk {
      display: none;
  }
  
}

/* Desktop: 901px and above – keep existing layout but tweak .nav-inner */
@media (min-width: 901px) {
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0rem;
  }

  .nav-actions {
    margin-top: 0rem;
  }

  .nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    overflow-x: visible;
  }

  .nav-tabs li a {
    padding: 0.9rem 0.9rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .nav-tabs-wrapper {
    flex: 1;
  }
}

/* search actions duplicate mob desk hide */

/* Hide nav search on desktop, show main search */
.nav .nav-actions {
  display: none;
}

main .nav-actions {
  display: block;
}

/* On mobile: hide main search, show nav search */
@media (max-width: 900px) {
  .nav .nav-actions {
    display: block;
  }
  
  main .nav-actions {
    display: none;
  }
  
  /* Back to site hide button css */
  .bk-btn-mob {
      display: block;
      color: var(--ink-mid);
  }
  .bk-btn-dsk {
      display: none;
  }
  
  .article-wrap {
      padding-left: 1rem;
      padding-right: 1rem;
  }
}

.hide-button {
    border: none;
}

/* ============================================
   RESPONSIVE FOOTER GRID (stacking)
   ============================================ */

/* Base: mobile (<600px) – single column */
.footer-grid {
  grid-template-columns: 1fr !important;   /* override the 1.5fr 1fr from the non‑responsive rule */
  gap: 2rem;
}

/* Tablet: 600px – 900px – two equal columns */
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop: 901px and above – the original side‑by‑side layout */
@media (min-width: 901px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr !important;
  }
}
