/* ==========================================================================
   Island Magazine theme
   ========================================================================== */


:root {
	--navy: #153b4b;
	--deep: #0d303e;
	--sea: #3d8ea6;
	--sea-dark: #2f7186;
	--panel: #eaf2f4;      /* Light panel background: Customizer → Colours. */
	--panel-line: #d3e1e6; /* Divider lines, derived from the panel colour. */
	--green: #315f4a;
	--green-dark: #244937;
	--ink: #24373b;
	--muted: #4b5c5f;
	--line: #d9dedb;
	--white: #fff;
	--serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--wrap: 1440px;
	--gutter: 30px;
	/* Ad Server plugin colours, matched to the theme. */
	--osas-blue: var(--navy);
	--osas-green: var(--green);
	--osas-sand: var(--panel);
	--osas-serif: var(--serif);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } /* Respects the reader's browser text size. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: #fff; font: 1.1875rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .15em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); line-height: 1.3; color: var(--deep); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 100000; background: #fff; color: var(--navy); padding: 12px 18px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.eyebrow { display: inline-block; font-size: 0.875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); text-decoration: none; }
a.eyebrow:hover { text-decoration: underline; }
.meta { font-size: 1rem; color: var(--muted); }
.meta .sep { margin: 0 .55em; color: #b3bdbb; }

/* Buttons & forms -------------------------------------------------------- */
.btn, .wp-block-button__link, input[type=submit], button[type=submit]:not(.search-submit) {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 50px; padding: 12px 22px; border: 0; border-radius: 4px;
	background: var(--green); color: #fff; font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
}
.btn:hover, .wp-block-button__link:hover, input[type=submit]:hover { background: var(--green-dark); color: #fff; }
.btn.light { background: #fff; color: var(--navy); }
.btn.outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }
input[type=text], input[type=email], input[type=search], input[type=url], textarea {
	width: 100%; border: 1px solid #c9d3d0; border-radius: 4px; padding: 12px 15px; background: #fff; font-size: 1.0625rem; min-height: 50px;
}

/* Top strip --------------------------------------------------------------- */
.topstrip { background: var(--navy); color: #fff; font-size: 0.9375rem; font-weight: 600; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; padding-bottom: 7px; }

/* Masthead ---------------------------------------------------------------- */
.masthead { background: #fff; padding: 22px 0 20px; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-block; font: 700 clamp(1.875rem, 4vw, 3.25rem)/1.05 var(--serif); letter-spacing: -.035em; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand span { color: var(--sea); }
.custom-logo { max-height: 90px; width: auto; }
.tagline { margin: 8px 0 0; font-size: 1.125rem; color: #4f6366; letter-spacing: .01em; }

.conditions { display: flex; align-items: center; gap: 0; }
.condition { padding: 4px 0 4px 28px; margin-left: 28px; border-left: 1px solid var(--line); line-height: 1.35; }
.condition:first-child { margin-left: 0; }
.weather { display: flex; align-items: center; gap: 14px; }
.weather-icon { width: 68px; height: 56px; flex: none; }
.weather .place { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.weather .temp { display: block; font-size: 1.875rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.weather .desc { font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.tides-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.tides-title svg { width: 34px; height: 16px; color: var(--sea); }
.tides-grid { display: flex; gap: 0; }
.tides-col { display: grid; grid-template-columns: auto auto; column-gap: 8px; font-size: 0.9375rem; color: var(--ink); padding-right: 22px; }
.tides-col + .tides-col { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--line); }
.tides-col dt { color: var(--muted); }
.tides-col dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Navigation -------------------------------------------------------------- */
.site-nav { background: var(--navy); color: #fff; position: relative; z-index: 50; }
.site-nav .wrap { display: flex; align-items: stretch; }
.menu-toggle { display: none; width: 100%; background: transparent; color: #fff; border: 0; text-align: left; padding: 14px 0; font-weight: 700; font-size: 1.0625rem; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.primary-menu > li { position: relative; }
.primary-menu a { display: block; color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 700; padding: 14px 12px; white-space: nowrap; }
.primary-menu > li:first-child > a { padding-left: 0; }
.primary-menu > li:last-child > a { padding-right: 0; }
.primary-menu a:hover, .primary-menu a:focus-visible, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current-category-ancestor > a { color: #bfe3ec; }
.primary-menu .current-menu-item > a { box-shadow: inset 0 -3px 0 #bfe3ec; }
.primary-menu .menu-item-has-children > a { padding-right: 32px; }
.primary-menu > li:last-child.menu-item-has-children > a { padding-right: 24px; }
.submenu-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.primary-menu > li:last-child .submenu-toggle { right: -4px; }
.submenu-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.submenu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.primary-menu .sub-menu { position: absolute; top: 100%; right: 0; min-width: 230px; background: #fff; border-radius: 0 0 6px 6px; box-shadow: 0 10px 28px rgba(13,48,62,.18); padding: 8px 0; display: none; }
.primary-menu li:hover > .sub-menu, .primary-menu li.is-open > .sub-menu { display: block; }
.primary-menu .sub-menu a { color: var(--navy); font-size: 1rem; padding: 9px 20px; white-space: normal; }
.primary-menu .sub-menu a:hover, .primary-menu .sub-menu a:focus-visible { background: var(--panel); color: var(--navy); }

/* Ads ---------------------------------------------------------------------- */
.ad-zone { margin: 0 auto; }
.ad-zone .osas-label { text-align: right; font-size: 0.75rem; letter-spacing: .14em; color: #5f6d6b; margin-bottom: 6px; }
.ad-zone .osas-ad img { border-radius: 2px; }
.ad-leaderboard { max-width: 970px; margin: 22px auto 30px; }
.ad-leaderboard-wide { max-width: var(--wrap); padding: 0 var(--gutter); }
.ad-square { margin-top: 0; }
.osas-inline { margin: 2em auto; }
.osas-inline .osas-label { text-align: right; }

/* Section headings -------------------------------------------------------- */
.section { padding-top: 52px; padding-bottom: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 2px solid var(--panel-line); margin-bottom: 26px; }
.section-heading h2 { margin: 0 0 12px; font-size: 1.875rem; }
.section-heading a { font-size: 1rem; font-weight: 700; color: var(--green); text-decoration: none; white-space: nowrap; }
.section-heading a:hover { text-decoration: underline; }

/* Home hero --------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--panel); min-height: 430px; }
.hero-image { display: block; min-height: 430px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; display: block; transition: transform .6s; }
.hero-image:hover img { transform: scale(1.02); }
.hero-copy { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.02em; margin: 14px 0; }
.hero-copy h1 a, .hero-copy h2 a { color: inherit; text-decoration: none; }
.hero-copy h1 a:hover, .hero-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hero-copy p { font-size: 1.1875rem; }
.read-link { font-size: 1rem; font-weight: 700; color: var(--green); margin-top: 14px; text-decoration: none; }
.read-link:hover { text-decoration: underline; }

/* Story cards ------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; }
.story { position: relative; }
.story-image { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 10; background: var(--panel); }
.story-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.story:hover .story-image img { transform: scale(1.03); }
.story .eyebrow { margin: 15px 0 6px; position: relative; z-index: 2; }
.story h3 { font-size: 1.25rem; margin: 0 0 8px; }
.story h3 a { color: var(--deep); text-decoration: none; }
.story h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* Whole card clickable. */
.story h3 a:hover { text-decoration: underline; }
.story .meta { margin: 0; }
.story-excerpt { font-size: 1.0625rem; color: var(--muted); margin: 0 0 6px; }

/* Newsletter -------------------------------------------------------------- */
.newsletter { background: var(--navy); color: #fff; margin-top: 62px; }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 38px; padding-bottom: 38px; }
.newsletter .eyebrow { color: #b5d8c9; }
.newsletter h2 { color: #fff; margin: 4px 0 7px; font-size: 1.875rem; }
.newsletter p { margin: 0; color: #e0e8e8; }
.signup { display: flex; gap: 10px; }
.signup input[type=email] { flex: 1; min-width: 0; border-color: #fff; }
.newsletter .btn { background: #fff; color: var(--navy); }
.newsletter .btn:hover { background: #e6f0ef; color: var(--navy); }
.signup-note { font-size: 0.9375rem; color: #c9d8d6; margin-top: 8px; }
.newsletter-box { background: var(--panel); border-radius: 8px; padding: 26px 24px; }
.newsletter-box h2 { font-family: var(--sans); font-size: 1.625rem; margin: 0 0 6px; color: var(--deep); }
.newsletter-box p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.newsletter-box .signup input[type=email] { border-color: #c9d3d0; }
.newsletter-box .btn { background: #2f7d32; }
.newsletter-box .btn:hover { background: #256528; }

/* Events ------------------------------------------------------------------ */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.event { display: grid; grid-template-columns: 75px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.datebox { background: var(--panel); text-align: center; padding: 8px; color: var(--navy); height: 78px; line-height: 1.2; }
.datebox span { display: block; font-size: 0.875rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.datebox b { display: block; font: 700 1.75rem/1.2 var(--serif); }
.event h3 { margin: 0 0 3px; font-size: 1.25rem; }
.event h3 a { color: var(--deep); text-decoration: none; }
.event h3 a::after { content: ''; position: absolute; inset: 0; }
.event h3 a:hover { text-decoration: underline; }
.event p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.event-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.events-aside { padding-top: 66px; }
.empty-note { color: var(--muted); font-size: 1.0625rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--panel); border-left: 5px solid var(--green); padding: 16px 20px; margin: 0 0 28px; font-size: 1.0625rem; }
.event-details dt { font-weight: 700; color: var(--navy); }
.event-details dd { margin: 0; }

/* Local deals ------------------------------------------------------------- */
.deals-wrap { background: var(--panel); margin-top: 60px; padding: 45px 0 55px; }
.deals-wrap .section-heading { border-color: var(--panel-line); }

/* Community --------------------------------------------------------------- */
.community { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: center; }
.community figure { margin: 0; }
.community img { width: 100%; height: 380px; object-fit: cover; display: block; }
.credit { font-size: 1rem; color: var(--muted); margin-top: 8px; }
.contributor { background: var(--panel); padding: 35px; }
.contributor h2 { margin-top: 6px; }

/* Directory CTA ------------------------------------------------------------- */
.directory { background: #f6f9fa; margin-top: 60px; padding: 50px 0; text-align: center; }
.directory .wrap { max-width: 820px; }
.directory p { color: var(--muted); }
.directory-search { display: flex; gap: 10px; margin: 25px auto 26px; max-width: 700px; }
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 auto 26px; max-width: var(--wrap); padding: 0 var(--gutter); }
.category-tile { background: #fff; border: 1px solid var(--line); padding: 20px 10px; text-align: center; font-size: 1rem; font-weight: 700; border-radius: 4px; color: var(--ink); text-decoration: none; }
.category-tile:hover { border-color: var(--green); color: var(--green); }
.category-tile span { display: block; font-size: 1.8125rem; margin-bottom: 7px; }

/* Article ------------------------------------------------------------------ */
.article-wrap { padding-bottom: 20px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 436px; gap: 54px; }
.sidebar .ad-zone { max-width: 436px; }
.sidebar .ad-zone .osas-ad--image img { width: 100%; }
.sidebar .side-panel, .sidebar .newsletter-box, .sidebar .widget { max-width: 100%; }
.layout-main { min-width: 0; }
.sidebar { border-left: 1px solid var(--line); padding-left: 26px; }
.crumb { font-size: 1rem; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { color: var(--green); text-decoration: underline; }
.crumb .sep { margin: 0 .35em; color: #9aa6a4; }
.label { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); font-weight: 700; }
.label a { color: inherit; text-decoration: none; }
.headline { font-size: clamp(2rem, 3.6vw, 3.125rem); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 12px; color: var(--deep); }
.deck { font-size: 1.375rem; line-height: 1.5; color: #4b5c5f; max-width: 880px; margin: 0 0 18px; }
.byline-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.byline { font-size: 1.0625rem; color: var(--muted); }
.byline .sep { margin: 0 .7em; color: #b3bdbb; }
.byline a { color: var(--ink); text-decoration: underline; text-decoration-color: #9aa6a4; }
.byline strong { color: var(--navy); font-weight: 600; }
.share { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--navy); }
.share-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid #c6d0ce; border-radius: 6px; background: #fff; color: var(--navy); padding: 0; position: relative; }
.share-btn:hover { border-color: var(--navy); background: var(--panel); color: var(--navy); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn .copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--deep); color: #fff; font-size: 0.875rem; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.featured-figure { margin: 0 0 26px; }
.featured-figure img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.featured-figure figcaption { font-size: 1rem; font-style: italic; color: #4b5c5f; margin-top: 8px; }
.layout-image-first .featured-figure { margin-bottom: 20px; }
.layout-image-first .featured-figure img { max-height: 560px; }

.layout-main { container-type: inline-size; }
.entry-content { font-size: 1.25rem; line-height: 1.75; max-width: 33em; } /* ~70 characters per line (DM Sans ≈ .465em per character); grows with the reader’s text size. */
.tags, .share-footer, .author-box, .comments-area, .event-details, .layout-main .page-links { max-width: 41.25rem; }
.entry-content .alignwide, .entry-content .alignfull { width: 100cqw; max-width: 100cqw; margin-left: 0; margin-right: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.8125rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.4375rem; margin-top: 1.4em; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content blockquote, .entry-content .wp-block-pullquote { border-left: 5px solid var(--green); padding: 6px 0 6px 22px; margin: 38px 0; font: 1.5rem/1.5 var(--serif); color: var(--navy); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content .wp-block-pullquote { border-top: 0; border-bottom: 0; text-align: left; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: 1rem; color: #4b5c5f; font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.single-post .entry-content > p:first-of-type::first-letter { font: 700 4.125rem/.9 var(--serif); float: left; padding: 8px 10px 0 0; color: var(--navy); }
.entry-content::after { content: ''; display: table; clear: both; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tags a { font-size: 1rem; background: var(--panel); color: var(--navy); padding: 4px 12px; border-radius: 99px; text-decoration: none; }
.tags a:hover { background: var(--panel-line); }
.share-footer { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 30px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 1rem; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; margin: 30px 0; }
.author-box img { border-radius: 50%; }
.author-box h2 { font-size: 1.125rem; margin: 0 0 4px; }
.author-box p { font-size: 1.0625rem; color: var(--muted); margin: 0; }

/* Sidebar ------------------------------------------------------------------ */
.sidebar > * + * { margin-top: 32px; }
.side-panel { background: var(--panel); border-radius: 6px; padding: 18px 18px 6px; }
.side-panel h2, .widget-title { font-size: 1.5rem; margin: 0 0 14px; color: var(--deep); }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--panel-line); position: relative; }
.related-item:last-child { border-bottom: 0; margin-bottom: 0; }
.related-item img { width: 112px; height: 76px; object-fit: cover; display: block; }
.related-item h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 4px; }
.related-item h3 a { color: var(--navy); text-decoration: none; }
.related-item h3 a::after { content: ''; position: absolute; inset: 0; }
.related-item h3 a:hover { text-decoration: underline; }
.related-item .meta { font-size: 0.9375rem; }
.widget { font-size: 1.0625rem; }
.widget ul { padding-left: 1.1em; }

/* More stories ------------------------------------------------------------ */
.more { background: var(--panel); padding: 42px 0 55px; margin-top: 35px; }
.more h2 { font-size: 1.6875rem; }
.more .news-grid { gap: 24px; }

/* Archives ---------------------------------------------------------------- */
.archive-header { padding: 34px 0 10px; border-bottom: 2px solid var(--panel-line); margin-bottom: 30px; }
.archive-header h1 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); margin: 6px 0 8px; }
.archive-header .archive-description { color: var(--muted); max-width: 760px; }
.archive-header .archive-description p:last-child { margin: 0; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.subcats a { display: inline-block; font-size: 1rem; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; color: var(--navy); text-decoration: none; }
.subcats a:hover { border-color: var(--green); color: var(--green); }
.lead-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--panel); margin-bottom: 40px; position: relative; }
.lead-story .story-image { aspect-ratio: auto; height: 100%; min-height: 340px; border-radius: 0; }
.lead-story .lead-copy { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.lead-story h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 10px 0 12px; }
.lead-story h2 a { color: var(--deep); text-decoration: none; }
.lead-story h2 a::after { content: ''; position: absolute; inset: 0; }
.lead-story h2 a:hover { text-decoration: underline; }
.pagination, .navigation.pagination { margin: 48px 0 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1rem; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.no-results { padding: 30px 0 60px; max-width: 720px; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form .search-submit { flex: none; min-height: 50px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--green); color: #fff; font-weight: 700; }

/* Pages --------------------------------------------------------------------- */
.page-wrap { max-width: 860px; padding-top: 34px; padding-bottom: 50px; }
.page-wrap .headline { margin-bottom: 24px; }
.page-template-templates-page-full-width .page-wrap { max-width: var(--wrap); }

/* Comments ------------------------------------------------------------------ */
.comments-area { margin: 40px 0; }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; font-size: 1.0625rem; }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--muted); }
.comment-meta .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--navy); font-style: normal; }
.comment-form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.comment-form p { margin-bottom: 16px; }
.comment-form textarea { min-height: 140px; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--deep); color: #e8efed; padding: 48px 0 25px; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 35px; }
.site-footer .brand { font-size: 1.6875rem; color: #fff; }
.site-footer .brand span { color: #a8cfca; }
.site-footer p { font-size: 1rem; max-width: 380px; margin: 10px 0 0; }
.footer-menu, .social-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 13px 22px; max-width: 520px; font-size: 1rem; }
.footer-menu a, .social-menu a { color: #e8efed; text-decoration: none; }
.footer-menu a:hover, .social-menu a:hover { color: #fff; text-decoration: underline; }
.social-menu { margin-top: 14px; }
.footer-bottom { border-top: 1px solid #45616b; margin-top: 35px; padding-top: 18px; font-size: 0.9375rem; color: #d3dfdd; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #c6d4d2; }
.footer-widgets { margin-top: 26px; font-size: 1rem; }
.footer-widgets a { color: #e8efed; }
main + .newsletter, .more + .newsletter { margin-top: 0; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1280px) {
	.primary-menu a { font-size: 0.9375rem; padding: 13px 8px; }
	.primary-menu .menu-item-has-children > a { padding-right: 28px; }
	.conditions .tides-col { padding-right: 14px; }
	.conditions .tides-col + .tides-col { padding-left: 14px; }
	.condition { margin-left: 18px; padding-left: 18px; }
}
@media (max-width: 1020px) {
	:root { --gutter: 22px; }
	.masthead .wrap { flex-wrap: wrap; }
	.tides { display: none; }
	.hero-copy { padding: 28px; }
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.two-col { grid-template-columns: 1fr 250px; gap: 26px; }
	.layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
	.sidebar { padding-left: 20px; }
}
@media (max-width: 860px) {
	body { font-size: 1.125rem; }
	.topstrip .top-note { display: none; }
		.masthead { padding: 18px 0 16px; }
	.masthead .wrap { display: block; }
	.tagline { font-size: 1rem; }
	.conditions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
	.weather-icon { width: 46px; height: 38px; }
	.weather .temp { display: inline; font-size: 1.375rem; margin-right: 6px; }
	.menu-toggle { display: flex; align-items: center; gap: 10px; }
	.menu-toggle svg { width: 22px; height: 22px; }
	.primary-menu { display: none; flex-direction: column; padding: 0 0 12px; }
	.site-nav.open .primary-menu { display: flex; }
	.site-nav .wrap { flex-direction: column; }
	.primary-menu a, .primary-menu > li:first-child > a, .primary-menu > li:last-child > a { padding: 11px 0; font-size: 1.0625rem; }
	.primary-menu .sub-menu { position: static; display: none; box-shadow: none; background: rgba(255,255,255,.07); border-radius: 4px; padding: 4px 0; }
	.primary-menu li:hover > .sub-menu { display: none; }
	.primary-menu li.is-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a { color: #fff; padding: 9px 16px; }
	.primary-menu .sub-menu a:hover { background: transparent; color: #bfe3ec; }
	.submenu-toggle, .primary-menu > li:last-child .submenu-toggle { right: 0; top: 23px; width: 40px; height: 40px; }
	.ad-leaderboard { margin: 16px auto 22px; }
	.hero, .lead-story, .community { grid-template-columns: 1fr; }
	.hero-image, .hero-image img { min-height: 0; height: 260px; }
	.lead-story .story-image { min-height: 0; height: 240px; }
	.lead-story .lead-copy { padding: 24px; }
	.newsletter .wrap { grid-template-columns: 1fr; gap: 20px; }
	.two-col, .layout { grid-template-columns: 1fr; }
	.events-aside { padding-top: 10px; }
	.sidebar { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
	.sidebar > * + * { margin-top: 0; }
	.sidebar .osas-slot--sticky-side { position: relative; top: auto; }
	.community img { height: 260px; }
	.categories { grid-template-columns: repeat(3, 1fr); }
	.footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
	:root { --gutter: 19px; }
	.section { padding-top: 40px; }
	.section-heading { align-items: center; }
	.section-heading h2 { font-size: 1.5rem; }
	.news-grid { grid-template-columns: 1fr; gap: 28px; }
	.signup { flex-direction: column; }
	.signup .btn { width: 100%; }
	.tides-grid { flex-direction: column; }
	.headline { font-size: 1.9375rem; }
	.deck { font-size: 1.1875rem; }
	.byline-row { flex-direction: column; align-items: flex-start; }
	.sidebar { grid-template-columns: 1fr; }
	.sidebar .ad-zone { max-width: 320px; margin-left: auto; margin-right: auto; width: 100%; }
	.contributor { padding: 24px; }
	.directory-search { flex-direction: column; }
	.categories { grid-template-columns: repeat(2, 1fr); }
	.single-post .entry-content > p:first-of-type::first-letter { font-size: 3.375rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
}
/* Editions ---------------------------------------------------------------- */
/* Top bar edition menu. */
.topstrip .wrap { align-items: center; }
.edition-menu { position: relative; margin-left: auto; }
.edition-toggle { display: flex; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid #4f7383; border-radius: 6px; padding: 5px 12px; min-height: 36px; font-size: 0.9375rem; font-weight: 600; }
.edition-toggle:hover, .edition-menu.is-open .edition-toggle { border-color: #a8d5e2; background: rgba(255,255,255,.06); }
.edition-toggle strong { font-weight: 700; }
.edition-toggle .pin { width: 16px; height: 16px; flex: none; }
.edition-toggle .chev { width: 12px; height: 12px; flex: none; transition: transform .2s; }
.edition-menu.is-open .chev { transform: rotate(180deg); }
.edition-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 30px); background: #fff; color: var(--ink); border: 1px solid var(--panel-line); border-radius: 8px; box-shadow: 0 14px 34px rgba(13,48,62,.2); padding: 8px 0; z-index: 200; font-weight: 400; }
.edition-panel-title { padding: 8px 20px 10px; margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.edition-panel ul { list-style: none; margin: 0; padding: 0; }
.edition-panel li > a, .edition-panel li.is-soon { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; color: var(--ink); text-decoration: none; }
.edition-panel li > a:hover, .edition-panel li > a:focus-visible { background: var(--panel); }
.edition-panel li > a[aria-current] { background: var(--panel); }
.edition-panel .ed-name { display: block; font: 700 1.1875rem/1.3 var(--serif); color: var(--navy); }
.edition-panel .ed-area { display: block; font-size: 1rem; color: var(--muted); line-height: 1.4; }
.edition-panel .is-soon .ed-name { color: var(--muted); }
.edition-panel .check { width: 22px; height: 22px; color: var(--green); flex: none; }
.soon-badge { font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #eef1f2; color: var(--muted); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.edition-note { border-top: 1px solid #e3e9eb; margin: 8px 0 0; padding: 12px 20px 6px; font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

/* Masthead: edition name first, "ISLAND MAGAZINE" above it. */
.brand-kicker { display: inline-block; font-size: 0.875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sea-dark); text-decoration: none; margin-bottom: 2px; }
.brand-kicker:hover { color: var(--navy); text-decoration: underline; }
.brand-kicker .kicker-logo { display: block; max-height: 28px; width: auto; }
.edition-title { margin: 0; }
.edition-title .brand { color: var(--navy); }
.site-title { margin: 0; font-size: inherit; }

/* Island masthead: weather across the editions. */
.across-title { font-size: 0.8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.across-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 22px; }
.across-list a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.across-list a:hover .place { text-decoration: underline; }
.across-list .weather-icon { width: 44px; height: 38px; }
.across-list .place { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.across-list .temp { display: block; font-size: 1.625rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.across-list .desc { display: block; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.across-note { max-width: 220px; font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }

/* Edition chips on cards and stories. */
.story-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 15px 0 6px; position: relative; z-index: 2; }
.story-tags .eyebrow, .story .story-tags .eyebrow { margin: 0; }
.hero-copy .story-tags { margin: 0; }
.hero-copy .eyebrow a { color: inherit; text-decoration: none; }
.hero-copy .eyebrow a:hover { text-decoration: underline; }
.edition-chip { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; background: var(--chip-bg, #d4e8ee); color: var(--chip-fg, #1d5466); padding: 2px 10px; border-radius: 99px; text-decoration: none; position: relative; z-index: 2; white-space: nowrap; }
a.edition-chip:hover { color: var(--chip-fg, #1d5466); text-decoration: underline; }
.label .edition-chip { vertical-align: 2px; margin-right: 6px; letter-spacing: .08em; }
.hero-navy .edition-chip { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* Choose Your Edition. */
.edition-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.edition-card { position: relative; background: var(--panel); border-radius: 6px; padding: 26px; }
.edition-card h3 { font-size: 1.625rem; margin: 0; color: var(--navy); }
.edition-card h3 a { color: inherit; text-decoration: none; }
.edition-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.edition-card h3 a:hover { text-decoration: underline; }
.edition-card p { font-size: 1.0625rem; color: var(--muted); margin: 6px 0 16px; }
.edition-card-cta { font-weight: 700; color: var(--green); font-size: 1rem; text-decoration: none; }
.edition-card.is-soon { background: #f6f9fa; border: 1px dashed #b9cdd4; }
.edition-card.is-soon .edition-card-cta { color: var(--muted); }
.edition-card.is-soon a.edition-card-cta { color: var(--green); }

/* From Across the Island. */
.across-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.across-item { position: relative; display: flex; gap: 14px; align-items: center; background: var(--panel); border-radius: 6px; padding: 14px; }
.across-item img { width: 112px; height: 76px; object-fit: cover; flex: none; display: block; border-radius: 2px; }
.across-item h3 { font-size: 1.0625rem; line-height: 1.35; margin: 6px 0 0; }
.across-item h3 a { color: var(--deep); text-decoration: none; }
.across-item h3 a::after { content: ''; position: absolute; inset: 0; }
.across-item h3 a:hover { text-decoration: underline; }

/* Section and search pages: edition filter. */
.edition-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; font-size: 1rem; }
.edition-filter > span { font-weight: 700; color: var(--muted); }
.edition-filter ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.edition-filter a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; color: var(--navy); text-decoration: none; font-weight: 600; }
.edition-filter a:hover { border-color: var(--green); color: var(--green); }
.edition-filter a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

.footer-edition { font-size: 1rem; color: #c9d8d6; margin: 6px 0 0; }
.directory-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.signup-edition { min-height: 50px; border: 1px solid #fff; border-radius: 4px; padding: 0 12px; background: #fff; color: var(--navy); }
.newsletter-box .signup-edition { border-color: #c9d3d0; }

@media (max-width: 1020px) {
	.across-grid { grid-template-columns: 1fr; }
	.across-note { display: none; }
}
@media (max-width: 860px) {
	.topstrip .wrap { justify-content: space-between; }
	.across-list { flex-wrap: wrap; gap: 14px 22px; }
	.across-list .temp { display: inline; font-size: 1.25rem; margin-right: 6px; }
	.across-list .desc { display: inline; }
}
@media (max-width: 600px) {
	.topstrip .today { font-size: 0.875rem; }
	.edition-toggle { padding: 5px 10px; }
	.edition-toggle > span { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.edition-panel { position: fixed; left: 15px; right: 15px; top: 52px; width: auto; }
	.edition-card { padding: 22px; }
}
@media (max-width: 420px) {
	.topstrip .today { display: none; }
	.edition-menu { margin: 0 auto; }
}

@media print {
	.topstrip, .site-nav, .ad-zone, .osas-slot, .osas-anchor, .newsletter, .newsletter-box, .more, .share, .share-footer, .site-footer, .sidebar, .comments-area { display: none !important; }
	.layout { display: block; }
	body { font-size: 12pt; }
}

/* Larger, darker small print inside Ad Server coupons and house ads (plugin styles use fixed pixels). */
.ad-zone .osas-coupon-business { font-size: .875rem; }
.ad-zone .osas-coupon-offer { font-size: 1.8125rem; }
.ad-zone .osas-coupon-headline { font-size: 1.25rem; }
.ad-zone .osas-coupon-body { font-size: 1.0625rem; color: #4b5c5f; }
.ad-zone .osas-coupon-fine { font-size: .9375rem; color: #4b5c5f; }
.ad-zone .osas-house-text { font-size: 1.1875rem; color: #5f6d6b; }
.ad-zone .osas-text-headline { font-size: 1.25rem; }
.ad-zone .osas-text-body { font-size: 1.0625rem; }

/* Colour options (Customizer → Colours) ------------------------------------ */
/* White panels: add a hairline so cards and bands still read as separate. */
.panels-outlined .hero, .panels-outlined .lead-story, .panels-outlined .side-panel, .panels-outlined .newsletter-box,
.panels-outlined .contributor, .panels-outlined .datebox, .panels-outlined .event-details { border: 1px solid var(--line); }
.panels-outlined .deals-wrap, .panels-outlined .more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panels-outlined .tags a { border: 1px solid var(--line); }
/* Navy featured story on the homepage. */
.hero-navy .hero { background: var(--navy); border: 0; }
.hero-navy .hero-copy h1, .hero-navy .hero-copy h2, .hero-navy .hero-copy h2 a { color: #fff; }
.hero-navy .hero-copy .eyebrow, .hero-navy .hero-copy .eyebrow a { color: #a8d5e2 !important; }
.hero-navy .hero-copy p { color: #e3edf0; }
.hero-navy .hero-copy .meta { color: #c9dade; }
.hero-navy .hero-copy .meta .sep { color: #7fa3ad; }
.hero-navy .read-link { color: #fff; }
.label a.edition-chip, .label a.edition-chip:hover { color: var(--chip-fg, #1d5466); }
.osas-inline .osas-label, .osas-slot .osas-label { color: #5f6d6b; }
.directory-actions { margin-top: 6px; }
