/* Responsive overrides. Loaded last. Desktop (>1024px) is intentionally left unchanged. */

/* ---------- Tablet and small laptop (641px – 1024px) ---------- */
@media (max-width: 1024px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid { grid-template-columns: 1fr 1fr !important; }
  .lead-story { grid-column: 1 / -1; min-height: 460px !important; }
  .secondary-stories { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .secondary-card, .compact-feature { min-height: 0 !important; height: auto !important; }
  .lead-image .image-location { display: none !important; }
  .latest-panel { grid-column: 1 / -1; }
  .community-edition,
  .topic-grid { grid-template-columns: 1fr 1fr !important; }
  .coverage-layout { grid-template-columns: 1fr !important; }
  .feed-grid { grid-template-columns: 1fr 1fr !important; }
  .district-inner { grid-template-columns: 1fr !important; }
  .site-skin { display: none !important; }
  .edition-sidebar { grid-column: 1 / -1; }
  .perspective-grid { grid-template-columns: 1fr !important; }
  .masthead .edition { font-size: 11px; }
  .main-nav { overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-links { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; flex: none; }
}

/* ---------- Phone (up to 720px) ---------- */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .wrap { width: calc(100% - 28px) !important; }

  /* Utility bar: keep one line, hide the middle "sample" note */
  .utility-inner { height: auto !important; min-height: 34px; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 6px 0; }
  .utility-inner > span:first-child { font-size: 10px !important; letter-spacing: .6px; }
  .utility-inner .demo { display: none !important; }
  .utility-inner > div { font-size: 12px; }

  /* Masthead: stacked, logo centred and fully visible */
  .masthead-shell { background-position: 60% center !important; }
  .masthead {
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 0 16px !important;
  }
  .masthead .edition {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 12px;
    font-size: 11px !important;
    line-height: 1.35;
    padding: 0 !important;
    border-left: 0 !important;
  }
  .masthead .edition .eyebrow { font-size: 10px; }
  .masthead .weather { font-size: 12px; }
  .masthead .wordmark {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: min(74vw, 300px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: center;
  }
  .masthead .wordmark img,
  .masthead .wordmark .brand-logo-image { width: 100% !important; height: auto !important; display: block; }
  .masthead .wordmark > span,
  .masthead .wordmark i { display: revert; }
  .masthead .mast-actions {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
    width: 100%;
  }
  .masthead .mast-actions .outline-button,
  .masthead .mast-actions .blue-button { font-size: 13px; padding: 9px 12px; }

  /* Edition info: one clean centred line, no side rule or box */
  .masthead .edition {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    gap: 2px 10px !important;
  }
  .masthead .edition > span:not(.eyebrow) { white-space: nowrap; }

  /* Masthead actions: plain icon row, no dark panel behind it */
  .masthead .mast-actions {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Masthead actions: one tidy row */
  .masthead .mast-actions { display: flex !important; align-items: center !important; justify-content: center !important; }
  .masthead .mast-actions > * { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
  .masthead .icon-button { min-width: 44px; min-height: 44px; }
  .masthead .watch-top { display: none !important; }

  /* Nav: horizontal swipe row, no clipped text */
  .nav-shell { overflow: hidden; }
  .main-nav { height: auto !important; min-height: 52px; padding: 0 !important; }
  .nav-links { gap: 2px !important; padding: 0 2px; }
  .nav-item { padding: 14px 12px !important; font-size: 15px !important; }
  .district-nav { display: none !important; }

  /* Briefing strip */
  .briefing { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px !important; }
  .briefing p { font-size: 15px; line-height: 1.5; flex: 1 1 100%; order: 3; }
  .briefing-label { font-size: 11px; }
  .ticker-arrows { margin-left: auto; display: flex; gap: 6px; }

  /* Hero: one column, lead first */
  .hero-section { padding-top: 22px !important; padding-bottom: 28px !important; }
  .section-line { flex-wrap: wrap; gap: 6px 12px; }
  .section-line h1, .section-line h2 { font-size: 24px !important; line-height: 1.3 !important; }
  .hero-grid { display: flex !important; flex-direction: column; gap: 18px !important; }
  .lead-story { min-height: 560px !important; height: auto !important; display: flex !important; flex-direction: column; justify-content: flex-end; }
  .lead-image { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  .lead-image img { height: 100%; width: 100%; object-fit: cover; }
  .lead-image .image-tag { top: 14px !important; left: 14px !important; bottom: auto !important; }
  .lead-image .image-location { display: none !important; }
  .lead-image .cover-note { display: none !important; }
  .lead-content { position: relative !important; padding: 0 16px 20px !important; }
  .lead-content .story-meta { padding-top: 16px; }
  .lead-content h2 { font-size: 24px !important; line-height: 1.35 !important; }
  .lead-content p { font-size: 15px !important; }
  .secondary-stories { display: flex; flex-direction: column; gap: 16px !important; }
  .secondary-card { min-height: 0 !important; height: auto !important; }
  .secondary-image { height: 190px !important; }
  .compact-feature { display: flex; align-items: center; gap: 12px; }
  .compact-feature > div { flex: 1; }
  .politics-watermark { display: none; }
  .latest-panel { padding: 16px !important; }

  /* Story meta: never overlap (category + location) */
  .story-meta { flex-wrap: wrap; gap: 6px 10px; }
  .feed-card { min-height: 0 !important; height: auto !important; padding: 200px 0 0 !important; }
  .feed-card .feed-image { position: absolute !important; top: 0; left: 0; right: 0; height: 200px !important; width: auto !important; }
  .feed-card .feed-image img { width: 100%; height: 100%; object-fit: cover; }
  .feed-card .photo-caption { left: 12px !important; top: 12px !important; bottom: auto !important; }
  .feed-card .story-meta,
  .feed-card .headline-button,
  .feed-card .read-time { padding-left: 14px; padding-right: 14px; }
  .feed-card .headline-button { display: block; text-align: left; }
  .feed-card .story-meta { padding-top: 14px; }

  /* Feed and coverage: single column */
  .feed-grid,
  .coverage-grid,
  .topic-grid,
  .community-edition,
  .perspective-grid,
  .district-chips { grid-template-columns: 1fr !important; }
  .feed-grid { gap: 18px !important; }
  .feed-tabs { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; padding-bottom: 12px !important; }
  .feed-tabs::-webkit-scrollbar { display: none; }
  .feed-tabs button { flex: none; white-space: nowrap; }
  .feed-footer { flex-direction: column; gap: 12px; align-items: stretch; }
  .feed-footer .outline-button { width: 100%; }

  /* Topic tiles: 2 per row so they stay tappable */
  .topic-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .topic-tile { min-height: 96px; }

  /* Community / ads */
  .custom-ad-stack img { width: 100% !important; height: auto !important; max-height: none !important; }
  .edition-sidebar { max-width: none !important; width: 100% !important; }
  .pilgrimage-ad img { width: 100% !important; height: auto !important; }

  /* Video */
  .video-grid { display: flex !important; flex-direction: column; gap: 14px !important; }
  .video-main { min-height: 280px !important; }
  .video-side { display: flex; flex-direction: column; gap: 14px; }
  .video-copy strong { font-size: 20px !important; }
  .video-cta { padding: 16px !important; }

  /* Coverage hub */
  .coverage-column { min-width: 0; }

  /* District */
  .district-section { padding-top: 40px !important; padding-bottom: 40px !important; }
  .district-art { display: none !important; }
  .district-chip { font-size: 13px; padding: 9px 12px; }

  /* Dialogs: full screen sheets */
  dialog { width: calc(100vw - 20px) !important; max-width: none !important; max-height: calc(100dvh - 20px) !important; margin: 10px auto !important; overflow: auto; }
  dialog h2 { font-size: 22px !important; }
  #articleDialog img.article-image { width: 100%; height: auto; }
  #articleDialog .article-actions { flex-direction: column; align-items: stretch; }
  #articleDialog .article-actions button,
  #articleDialog .article-actions a { width: 100%; margin-left: 0 !important; text-align: center; }
  .search-field input { font-size: 16px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr !important; gap: 26px !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom a { font-size: 13px; }

  /* Tap targets: at least 44px */
  .icon-button, .round-arrow, .close-button, .save-button { min-width: 44px; min-height: 44px; }
  .text-link { min-height: 40px; display: inline-flex; align-items: center; }
  .toast { left: 14px; right: 14px; bottom: 16px; }
}

/* ---------- Very small phones (up to 380px) ---------- */
@media (max-width: 380px) {
  .masthead .edition { font-size: 10px !important; }
  .masthead .mast-actions .outline-button { display: none; }
  .lead-content h2 { font-size: 21px !important; }
  .section-line h1, .section-line h2 { font-size: 21px !important; }
  .topic-grid { grid-template-columns: 1fr !important; }
}

/* Footer bottom bar: legal text on the left, links in a tidy wrapping row on the right. */
.footer-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:14px 28px;align-items:center;font-size:13px!important;line-height:1.6!important;padding:22px 0!important}
.footer-legal{display:flex;flex-direction:column;gap:6px;min-width:0}
.footer-legal span{max-width:none!important;width:auto!important;order:0!important;margin:0!important;font-size:13px;line-height:1.6}
.footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 20px}
.footer-links a{margin:0!important;white-space:nowrap;font-size:13px;color:#d3ddf0;text-decoration:none}
.footer-links a:hover{color:#ffcf64}
@media (max-width:900px){.footer-bottom{grid-template-columns:1fr}.footer-links{justify-content:flex-start}}
@media (max-width:720px){.footer-bottom{gap:12px;padding:18px 0!important}.footer-links{gap:8px 16px}.footer-links a{font-size:13px}}

/* Phone: hamburger menu for categories; tagline hidden in the top bar. */
.menu-toggle{display:none;flex-direction:column;justify-content:center;gap:4px;width:44px;height:44px;padding:0 11px;background:#fff;border:1px solid #d9d4c5;border-radius:8px;cursor:pointer;flex:0 0 auto}
.menu-toggle span{display:block;height:2px;background:#181642;border-radius:2px;transition:transform .2s,opacity .2s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (max-width: 720px) {
  .utility-inner>span:first-child{display:none!important}
  .nav-shell{overflow:visible!important}
  .main-nav{position:relative;overflow:visible!important;display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px!important}
  .menu-toggle{display:inline-flex}
  .nav-links{display:none!important}
  .nav-links.open{display:flex!important;flex-direction:column;align-items:stretch;position:absolute;top:100%;left:0;right:0;z-index:30;background:#fff;padding:4px 16px 14px;box-shadow:0 12px 24px #15213a24;overflow:visible}
  .nav-links.open .nav-item{width:100%;text-align:left;padding:13px 4px;border-bottom:1px solid #eceae2;font-size:16px}
  .district-nav{display:flex!important;align-items:center;gap:6px!important;font-size:13px!important;font-weight:700;border-left:0!important;padding-left:0!important;white-space:nowrap;color:var(--blue,#5a41dc)}
  .district-nav svg{width:16px!important;height:16px!important}
  .district-nav svg:last-child{display:none!important}
}

/* Phone: news cards in the feed show one at a time and swipe horizontally (right to left). */
@media (max-width: 720px) {
  .feed-grid{display:flex!important;grid-template-columns:none!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin-inline:-16px;padding:4px 16px 14px;scroll-padding-inline:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .feed-grid::-webkit-scrollbar{display:none}
  .feed-grid>*{flex:0 0 calc(100% - 36px);min-width:0;scroll-snap-align:start}
}

/* Phone footer: brand and principle full width; "Explore" and "Closer to you" sit side by side. */
@media (max-width: 720px) {
  .footer-main{grid-template-columns:1fr 1fr!important;gap:22px 16px!important}
  .footer-main>div:first-child,
  .footer-main>.footer-principle{grid-column:1/-1}
  .footer-main h4{margin-bottom:10px}
  .footer-main a,.footer-main button{font-size:14px;padding:6px 0}
}

/* ---- Phone polish (max-width: 720px) ---- */
@media (max-width: 720px) {
  /* Nav bar: navy menu button, current section name, district on the right */
  .main-nav{background:#fff;padding:10px 16px!important;box-shadow:0 1px 0 #e4e7f0}
  .menu-toggle{background:#181642!important;border:0!important;border-radius:10px!important;width:44px!important;height:44px!important;box-shadow:0 4px 12px #18164230}
  .menu-toggle span{background:#ffffff!important}
  .menu-current{flex:1;min-width:0;margin-left:2px;font-family:var(--display,inherit);font-size:17px;font-weight:700;color:#181642;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .district-nav{flex:0 0 auto}

  /* Story cards in the "stories" row: one at a time, swipe right to left */
  .secondary-stories{display:flex!important;flex-direction:row!important;grid-template-columns:none!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin-inline:-16px;padding:16px 16px 18px!important;scroll-padding-inline:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-top:0!important}
  .secondary-stories::-webkit-scrollbar{display:none}
  .secondary-stories>*{flex:0 0 calc(100% - 36px);min-width:0;scroll-snap-align:start}

  /* "One Punjab" topic tiles: two per row */
  .topic-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .topic-tile{min-height:78px}

  /* Districts: clean two-column list under "Choose your district" */
  .district-total{position:static!important;margin:12px 0 0!important;display:flex;align-items:center;gap:10px}
  .district-chips{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:12px}
  .district-chip{width:100%;text-align:center;padding:11px 8px!important;border-radius:8px;font-size:13px!important;line-height:1.35}
  .district-bottom{margin-top:14px!important}
}

/* Admin link: top bar on desktop, footer on phones. Logo sits flush left in the footer. */
.utility-admin{color:#e8c98c;font-weight:700;letter-spacing:1.2px;margin-right:18px;text-transform:uppercase;white-space:nowrap}
.utility-admin:hover{color:#ffcf64}
@media (max-width: 720px) { .utility-admin{display:none} }
@media (min-width: 721px) { .admin-footer-link{display:none!important} }
.footer-brand .brand-logo-image{object-position:left center!important}

/* Districts on phone: dropdown instead of the long chip list. Desktop keeps the chips. */
.district-select{display:none}
@media (max-width: 720px) {
  .district-chips{display:none!important}
  .district-select{display:block;width:100%;margin-top:12px;padding:14px 44px 14px 16px;border-radius:10px;border:1px solid #c9d8c9;background:#ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23181642' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;-webkit-appearance:none;appearance:none;color:#181642;font-size:16px;font-weight:600;font-family:inherit}
  .district-select:focus{outline:3px solid #f4ab3d;outline-offset:2px}
}

/* Desktop: the phone-only category label stays hidden. Footer copyright moves below the links on phones. */
.menu-current{display:none}
@media (max-width: 720px) {
  .menu-current{display:block}
  .footer-bottom{display:flex!important;flex-direction:column-reverse!important}
}

/* Admin: same small link in the top bar on desktop and phone. Floating "back to top" button. */
.utility-admin{display:inline-block!important;text-transform:none;font-size:11px;letter-spacing:.4px;font-weight:700;margin-right:16px}
.float-top{position:fixed;right:16px;bottom:18px;z-index:60;width:48px;height:48px;border-radius:50%;background:#181642;color:#ffcf64;border:1px solid #ffcf6466;box-shadow:0 8px 22px #18164259;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;line-height:1;cursor:pointer;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}
.float-top.show{opacity:1;transform:none;pointer-events:auto}
.float-top:hover{background:#ffcf64;color:#181642}
@media (max-width: 720px) { .float-top{right:14px;bottom:16px;width:44px;height:44px} }

/* Phone: search / saved / watch-video row under the masthead is hidden. */
@media (max-width: 720px) { .masthead .mast-actions{display:none!important} }


/* Rashifal and Dharm sections */
.rashifal-section,.faith-section{margin-block:34px}
.zodiac-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:18px}
.zodiac-tile{background:#fff;border:1px solid #e4e7f0;border-radius:10px;padding:14px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;transition:border-color .2s,box-shadow .2s,transform .2s}
.zodiac-tile:hover{border-color:#8b64e4;transform:translateY(-2px)}
.zodiac-tile.active{border-color:#181642;box-shadow:0 6px 16px #18164224;background:#181642;color:#ffcf64}
.zodiac-symbol{font-size:30px;line-height:1;color:#8b64e4}
.zodiac-tile.active .zodiac-symbol{color:#ffcf64}
.zodiac-name{font-weight:700;font-size:15px}
.zodiac-panel{margin-top:16px;background:#fff;border:1px solid #e4e7f0;border-left:4px solid #e0a100;border-radius:8px;padding:16px 18px}
.zodiac-panel h3{font-size:19px;color:#181642;margin:0 0 8px}
.zodiac-panel p{font-size:15px;line-height:1.7}
.faith-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-top:18px}
.faith-lead{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;background:#fff;border:1px solid #e4e7f0;border-radius:10px;overflow:hidden;padding:0 0 16px}
.faith-lead img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.faith-lead h3{font-size:22px;line-height:1.5;padding:0 16px;color:#181642}
.faith-tag{margin:12px 0 0 16px;font-size:11px;font-weight:700;letter-spacing:1px;color:#8a5a00;text-transform:uppercase}
.faith-list{display:flex;flex-direction:column;gap:12px}
.faith-item{display:flex;flex-direction:column;gap:6px;text-align:left;background:#fff;border:1px solid #e4e7f0;border-radius:10px;padding:14px 16px}
.faith-item h3{font-size:16px;line-height:1.6;color:#181642}
.faith-meta{font-size:12px;color:#6b6f7c}
.faith-empty{background:#fff;border:1px dashed #cfd3df;border-radius:10px;padding:24px;color:#6b6f7c}
.faith-section .text-link{color:#181642}
@media (max-width:1024px){.zodiac-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:720px){.zodiac-grid{grid-template-columns:repeat(3,1fr);gap:9px}.zodiac-symbol{font-size:26px}.zodiac-name{font-size:13px}.faith-grid{grid-template-columns:1fr;gap:14px}.faith-lead h3{font-size:19px}}
.faith-grid.single{grid-template-columns:1fr}

/* Footer brand: short intro + read more. Rashi tiles: round icon badges. Faith header link. */
.footer-about{margin-top:12px;max-width:340px;line-height:1.7}
.footer-readmore{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-weight:700;color:#ffcf64;font-size:14px}
.footer-readmore svg{width:15px;height:15px}
.footer-readmore:hover{text-decoration:underline}
.zodiac-symbol{width:58px;height:58px;border-radius:50%;background:#fbf6e6;border:1px solid #e0a10066;display:flex;align-items:center;justify-content:center;color:#181642;font-size:30px}
.zodiac-tile:hover .zodiac-symbol{background:#181642;color:#ffcf64}
.zodiac-tile.active .zodiac-symbol{background:#ffcf64;color:#181642;border-color:#ffcf64}
@media (max-width:720px){.zodiac-symbol{width:50px;height:50px;font-size:26px}}

/* Rashifal: all 12 signs in one row on desktop, compact tiles (layout only, our own symbols). */
@media (min-width: 1025px) {
  .zodiac-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}
  .zodiac-tile{padding:12px 4px}
  .zodiac-symbol{width:46px;height:46px;font-size:24px}
  .zodiac-name{font-size:13px}
}

/* phone: hide the "Punjab edition / date / weather" block in the masthead */
@media (max-width:640px){.masthead .edition{display:none!important}}

/* Dharm section: 3 columns on desktop (list | lead | अन्य खबरें) */
.faith-grid{grid-template-columns:1fr 1.5fr 1fr}
.faith-grid.single{grid-template-columns:1fr}
.faith-others{background:#fff;border:1px solid #e4e7f0;border-radius:10px;padding:16px 18px}
.faith-others-title{display:inline-block;background:#f2bb50;color:#181642;font-weight:800;border-radius:999px;padding:8px 22px;font-size:15px;margin:0 auto 12px;display:block;text-align:center;width:max-content;margin-inline:auto}
.faith-others ol{list-style:none;margin:0;padding:0}
.faith-others li{border-bottom:1px solid #eef0f5}
.faith-others li:last-child{border-bottom:0}
.faith-others li button{display:flex;gap:10px;align-items:flex-start;text-align:left;width:100%;padding:11px 0;font-size:14px;line-height:1.6;color:#181642}
.faith-others li button:hover{color:#5a41dc}
.faith-num{font-weight:800;color:#181642;min-width:16px}
@media (max-width:1024px){.faith-grid{grid-template-columns:1fr 1fr}.faith-others{grid-column:1/-1}}
@media (max-width:720px){.faith-grid{grid-template-columns:1fr}}
.faith-lead .faith-meta{margin:0 16px}

/* header wordmark: logo mark + readable tagline text */
.wordmark{display:flex;flex-direction:column;align-items:center;gap:6px}
.wordmark .brand-logo-image{width:auto;height:auto;max-width:300px;max-height:none}
.wordmark-tag{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:2.6px;text-transform:uppercase;color:#f9e8c6;text-shadow:0 1px 8px #000a;white-space:nowrap;text-align:center}
@media (max-width:640px){.wordmark .brand-logo-image{max-width:200px}.wordmark-tag{font-size:8px;letter-spacing:1.4px}}
.wordmark>.wordmark-tag{font-size:13px!important;letter-spacing:2.6px!important;line-height:1.2!important;margin:0}
@media (max-width:640px){.wordmark>.wordmark-tag{font-size:8px!important;letter-spacing:1.4px!important}}
@media (max-width:640px){.masthead .wordmark .brand-logo-image{width:min(76vw,310px)!important;max-width:none!important;height:auto!important}}

/* Align linked section navigation like homepage buttons on desktop. */
@media (min-width:721px){
  .main-nav .nav-links{align-self:stretch;align-items:stretch}
  .main-nav .nav-links>.nav-item{display:inline-flex;align-items:center;justify-content:center;min-height:100%;padding-top:0!important;padding-bottom:0!important;line-height:1.3;text-decoration:none}
}
