/* Shared visual refresh for the homepage and every public rubric page. */
:root {
  --mn-ink: #173c4c;
  --mn-muted: #5c7075;
  --mn-paper: #fffdf8;
  --mn-pastel: #f0f3ed;
  --mn-blue: #416e8f;
  --mn-gold: #b28d48;
  --mn-line: #dce4df;
}
html { scroll-padding-top: 96px; }
body { background: #e7eee8 !important; color: var(--mn-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
.topbar { color: var(--mn-ink); background: rgba(231, 238, 232, .98); border-bottom: 1px solid #d8e0d8; box-shadow: 0 5px 20px rgba(23, 60, 76, .08); }
.topbar .nav { min-height: 70px; gap: 14px; }
.brand { gap: 10px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-color: #ffffff; background: var(--mn-paper); box-shadow: 0 2px 9px rgba(23,60,76,.12); }
.brand-name, .brand-name span, .footer-brand { color: #173c4c !important; }
.brand-name { font-size: 1.02rem; font-weight: 760; letter-spacing: -.035em; }
.nav-links { gap: clamp(8px, .95vw, 14px); color: var(--mn-ink); font-size: .82rem; font-weight: 650; }
.nav-links a, .nav-group summary { color: var(--mn-ink); }
header nav>a.map-nav-link { display:inline-flex; align-self:center; align-items:center; height:40px; min-height:0; padding:0; line-height:22px; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-group summary:hover, .nav-group summary:focus-visible, .nav-group.active summary { color: var(--mn-blue); }
.nav-links a[aria-current="page"], .nav-group:has(a[aria-current="page"])>summary { color: var(--mn-blue); }
.nav-group>summary { gap: 5px; min-height: 42px; padding: 8px 2px; white-space: nowrap; }
.topbar .nav-group>summary .nav-icon { display:inline-grid; place-items:center; width:23px; height:23px; margin-right:2px; border-radius:7px; color:#416e8f; background:#e8eef7; }
.topbar .nav-group>summary .nav-icon svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.topbar .nav-group:nth-of-type(2)>summary .nav-icon { color:#a85e61; background:#f7e9e8; }
.topbar .nav-group:nth-of-type(3)>summary .nav-icon { color:#73864d; background:#edf1e3; }
.topbar .nav-group:nth-of-type(4)>summary .nav-icon { color:#7b709f; background:#eeeaf7; }
.nav-dropdown { min-width: 260px; padding: 9px; border: 1px solid var(--mn-line); border-radius: 13px; background: rgba(255,253,248,.99); box-shadow: 0 14px 34px rgba(23,60,76,.14); }
.nav-dropdown a { display: flex; align-items: center; gap: 9px; color: var(--mn-ink); padding: 8px 10px; border-radius: 8px; font-size: .88rem; font-weight: 520; }
.nav-dropdown .nav-link-icon { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; }
.nav-dropdown .nav-link-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-dropdown .tone-0 { color: #2d7880; background: #e5f1ed; }
.nav-dropdown .tone-1 { color: #557aa1; background: #e8eef7; }
.nav-dropdown .tone-2 { color: #b87945; background: #f7eee1; }
.nav-dropdown .tone-3 { color: #a85e61; background: #f7e9e8; }
.nav-dropdown .tone-4 { color: #7b709f; background: #eeeaf7; }
.nav-dropdown .tone-5 { color: #73864d; background: #edf1e3; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { color: var(--mn-ink); background: #edf3ef; }
.nav-section-title { color: #71838a !important; font-size: .72rem !important; letter-spacing: .075em !important; text-transform: uppercase; }
.nav-section+.nav-section { border-color: var(--mn-line); }
.topbar .nav-help-link { color: var(--mn-ink); font-size: .82rem; font-weight: 650; }
.language-switcher { color: var(--mn-ink); font-size: .8rem; }
.language-switcher>summary { min-height: 40px; padding: 6px 9px; border-color: #cdd9d8; }
.language-switcher>summary:hover, .language-switcher>summary:focus-visible { border-color: var(--mn-blue); background: #edf3ef; }
.language-panel { background: var(--mn-paper); border-color: var(--mn-line); box-shadow: 0 14px 34px rgba(23,60,76,.14); }
.header-clock { color: var(--mn-ink); }
.header-clock-date { color: #64777c; }
.header-clock-time { color: var(--mn-ink); font-weight: 700; }
.menu-toggle { color: var(--mn-ink); border-color: #cdd9d8; background: var(--mn-paper); }
.topbar .nav>.menu-toggle[aria-expanded="true"] { border-color: var(--mn-blue); background: #edf3ef; }
.home-page .hero>.live-weather { left: auto; right: max(20px, calc((100% - 1240px)/2)); }
.home-page .live-weather .official-warnings-home>.official-warning-body { left: auto; right: 0; }
.home-page .hero h1, .subpage-page main :is(.rubric-title,.section-title), .home-page main :is(h2,.service-heading) { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.04em; }
.home-page .hero h1 { max-width: 760px; font-size: clamp(2.8rem, 5.4vw, 4.5rem); line-height: 1.08; font-weight: 760; }
.home-page main :is(h2,.service-heading) { font-size: clamp(1.7rem, 2.7vw, 2.25rem); line-height: 1.2; font-weight: 700; }
.subpage-page main :is(.rubric-title,.section-title) { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.16; font-weight: 730; }
.subpage-page main .section-intro { font-size: 1.06rem; line-height: 1.68; }
.subpage-page main p, .subpage-page main li { font-size: 1rem; line-height: 1.72; }
.subpage-page main :is(.service-heading,.place-heading) { font-size: clamp(1.22rem, 1.8vw, 1.52rem); line-height: 1.34; font-weight: 650; }
.subpage-page main :is(.service-note,.video-note,.merch-note,.hiking-note,.restaurant-note,.leisure-note,.update-note,.weather-note) { font-size: .94rem; line-height: 1.7; }
.footer-brand { font-size: 1rem; letter-spacing: -.02em; }
.footer-links, .site-counter { font-size: .82rem; }
.home-page footer { background: #e5e9e2; border-top-color: #d8e0d8; }
.home-page .home-choices { background: #eef2ec; }
.home-page .journey-card { border-color: #dce4dc; border-radius: 20px; background: #fffdf8; box-shadow: 0 9px 28px rgba(33,62,52,.08); }
.home-page .journey-card h3 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.28rem; letter-spacing: -.025em; }
.home-page .home-hero-search { display: flex; width: min(660px,100%); gap: 7px; padding: 7px; margin: 20px 0 14px; border: 1px solid #ffffffd9; border-radius: 12px; background: #fffdf8; box-shadow: 0 10px 30px #102c3c24; }
.home-page .home-hero-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; outline: 0; background: transparent; color: #173c4c; font: inherit; font-size: .95rem; }
.home-page .home-hero-search input::placeholder { color: #75848a; }
.home-page .home-hero-search button, .home-page .home-planner-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 9px; background: #436b96; color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.home-page .home-quick-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 26px; color: #f3f1e8; font-size: .82rem; }
.home-page .home-quick-links a { padding: 6px 11px; border: 1px solid #ffffff70; border-radius: 999px; color: white; background: #ffffff16; text-decoration: none; }
.home-page .home-quick-links a:hover { color: #173c4c; background: #fffdf8; }
.home-page .hero-note { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.home-page .hero-note-item { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.home-page .hero-note-item strong { color: #ead39f; font-size: 1.05rem; }
.home-overview { padding: 62px 0 66px; background: #e7eee8; }
.home-overview>.shell { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(0,1.5fr); align-items: center; gap: clamp(28px,5vw,68px); }
.home-overview-heading { max-width: 430px; padding: 30px 0; }
.home-overview-heading .eyebrow { display: inline-flex; margin-bottom: 12px; color: #a87945; font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.home-overview-heading h2 { margin: 0 0 14px; font-size: clamp(2rem,3vw,2.8rem); line-height: 1.12; font-weight: 720; letter-spacing: -.045em; }
.home-overview-heading p { margin: 0 0 21px; color: #536970; font-size: 1rem; line-height: 1.7; }
.home-place-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.home-place-grid>a { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) 18px; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 15px; border: 1px solid #d9e2da; border-radius: 13px; background: #fffdf8; color: #173c4c; text-decoration: none; box-shadow: 0 4px 12px #173c4c08; transition: transform .18s, box-shadow .18s; }
.home-place-grid>a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px #173c4c14; }
.place-mark { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 1.22rem; }
.place-mark.tone-0 { color: #2d7880; background: #e5f1ed; }.place-mark.tone-1 { color: #557aa1; background: #e8eef7; }.place-mark.tone-2 { color: #b87945; background: #f7eee1; }.place-mark.tone-3 { color: #a85e61; background: #f7e9e8; }.place-mark.tone-4 { color: #7b709f; background: #eeeaf7; }.place-mark.tone-5 { color: #73864d; background: #edf1e3; }
.home-place-grid strong { min-width: 0; font-size: .96rem; font-weight: 680; line-height: 1.35; }
.home-place-grid small { grid-column: 2; color: #66777a; font-size: .77rem; line-height: 1.45; }
.place-arrow { grid-column: 3; grid-row: 1 / 3; justify-self: end; color: #607e84; }
@media (min-width: 1201px) {
  .topbar .nav { justify-content: flex-start; }
  .topbar .nav>.nav-links { flex: 1 1 auto; min-width: 0; }
  .topbar .nav>.language-switcher { margin-left: auto; }
  .topbar .nav>.header-clock { margin-left: 4px; }
}
@media (max-width: 1200px) {
  .topbar .nav-links { color: var(--mn-ink); background: var(--mn-paper); border: 1px solid var(--mn-line); box-shadow: 0 14px 34px rgba(23,60,76,.14); }
  .topbar .nav-links a, .topbar .nav-links .nav-group>summary { color: var(--mn-ink); }
  .topbar .nav-links .nav-group+.nav-group { border-color: var(--mn-line); }
  .topbar .nav-dropdown { background: transparent; box-shadow: none; }
  .topbar .nav-dropdown a { color: var(--mn-ink); }
  .topbar .nav-section+.nav-section { border-color: var(--mn-line); }
  .topbar .nav-help-link { border-color: var(--mn-line); }
  .topbar .nav>.menu-toggle { margin-left: auto; }
}
@media (max-width: 700px) {
  .topbar .nav { min-height: 58px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: .9rem; }
  .home-page .hero>.live-weather { right: 16px; left: auto; }
  .home-page .hero h1 { font-size: clamp(2.25rem, 10vw, 3.1rem); }
  .home-page .home-hero-search { gap: 5px; padding: 5px; }
  .home-page .home-hero-search input { padding: 9px 8px; font-size: .84rem; }
  .home-page .home-hero-search button { min-height: 42px; padding: 8px 11px; font-size: .82rem; }
  .home-page .home-quick-links { gap: 6px; font-size: .75rem; }
  .home-page .home-quick-links a { padding: 5px 9px; }
  .home-page .hero-note { gap: 10px 15px; }
  .home-page .hero-note-item { font-size: .75rem; }
  .home-overview { padding: 36px 0 42px; }
  .home-overview>.shell { grid-template-columns: 1fr; gap: 18px; }
  .home-overview-heading { max-width: none; padding: 0; }
  .home-place-grid { gap: 8px; }
  .home-place-grid>a { grid-template-columns: 32px minmax(0,1fr) 14px; column-gap: 8px; padding: 11px 9px; border-radius: 11px; }
  .place-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; }
  .home-place-grid strong { font-size: .83rem; }
  .home-place-grid small { font-size: .68rem; }
  .subpage-page main :is(.rubric-title,.section-title) { font-size: clamp(1.7rem, 8vw, 2.15rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Give the MallorcaNorden menu distinct marks for its video and shop links. */
.nav-icon.nav-icon-pair { width: 28px; gap: 1px; flex: 0 0 28px; }
.nav-icon.nav-icon-pair svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon.nav-icon-pair svg:first-child { color: #9b7744; }
.nav-icon.nav-icon-pair svg:last-child { color: #b34e57; }

/* Keep search reachable beside the language picker and mobile menu. */
header .header-search-link { display: inline-flex; flex: 0 0 36px; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #d7ded9; border-radius: 10px; background: #f8faf6; color: #496b7d; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
header .header-search-link svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
header .header-search-link:hover { border-color: #b8c9be; background: #fffdf8; color: #244f5d; }
@media (max-width: 1120px) { header .header-search-link { flex-basis: 40px; width: 40px; height: 40px; } }
