/* Nore Lodge theme styles. Palette: navy #13325e / #0f294e, red #af1600, pale blue, Raleway. */
:root {
	--navy: #13325e;
	--navy-deep: #0f294e;
	--red: #af1600;
	--red-hover: #8c1a0f;
	--pale: #e8eff8;
	--paper: #f6f9fc;
	--white: #fdfeff;
	--ink: #0d2647;
	--muted: #44546c;
	--line: #cfdcec;
	--gold: #dcb767;
	--font: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--red); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
.site-main:focus { outline: none; }
.nore-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

/* Type */
.nore-display { font-weight: 300; letter-spacing: -.01em; line-height: 1.05; }
.nore-display strong { font-weight: 800; }
.nore-eyebrow, .nore-kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.nore-eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0; }
.nore-eyebrow span { width: 2rem; height: 3px; background: currentColor; display: inline-block; }
.nore-eyebrow--light { color: var(--gold); }
.nore-kicker { display: block; }
.nore-h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); color: var(--navy); margin: 1.25rem 0 0; }
.nore-muted { color: var(--muted); max-width: 28rem; }

/* Buttons */
.nore-btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; font-weight: 700; font-size: .875rem; text-decoration: none; border: 2px solid transparent; border-radius: 0; transition: background-color .2s, color .2s; }
.nore-btn .nore-arrow { transition: transform .2s; }
.nore-btn:hover .nore-arrow { transform: translate(2px,-2px); }
.nore-btn--primary, .wp-block-button__link { background: var(--red); color: #fff; }
.nore-btn--primary:hover, .wp-block-button__link:hover { background: var(--red-hover); color: #fff; }
.nore-btn--ghost { border-color: currentColor; color: #fff; }
.nore-btn--ghost:hover { color: #fff; opacity: .85; }
.nore-btn--ghost-dark { border-color: var(--navy); color: var(--navy); }
.nore-btn--ghost-dark:hover { background: var(--navy); color: #fff; }
.nore-btn--light { background: var(--white); color: var(--navy); }
.nore-btn--light:hover { background: var(--pale); color: var(--navy); }
.nore-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 6px 24px -12px rgba(15,41,78,.6); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.utility-bar { display: none; background: var(--navy-deep); }
.utility-bar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding-block: .35rem; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.75); }
.utility-bar a { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.utility-bar a:hover { color: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.site-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-brand .custom-logo { max-height: 6rem; width: auto; display: block; }
.site-brand__link { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.site-brand__link:hover { color: #fff; }
.site-brand__mark { width: auto; height: 6rem; object-fit: contain; flex: none; }
@media (min-width: 768px) {
.site-brand__mark { height: 7rem; }
.site-brand .custom-logo { max-height: 7rem; }
}
@media (max-width: 767px) {
.site-brand .site-brand__name { font-size: .9rem; }
.site-brand .site-brand__tag { font-size: 10px; letter-spacing: .15em; }
}
.site-brand__name { display: block; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; }
.site-brand__tag { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: rgba(255,255,255,.7); }

.nav-toggle { background: none; border: 0; color: #fff; padding: .6rem; cursor: pointer; display: grid; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 3px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
/* Mobile: hidden only when JS is available, so no-JS users still see links. */
.js .site-nav { display: none; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.15); padding: .5rem 1.25rem 2rem; max-height: calc(100dvh - 72px); overflow-y: auto; }
html:not(.js) .site-nav { position: static; }
.site-nav.is-open { display: block; animation: navIn .25s ease-out; }
.site-nav__list > li > a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 1.25rem; font-weight: 600; color: rgba(255,255,255,.82); }
.site-nav__list > li > a::after { content: ""; width: 8px; height: 8px; background: rgba(255,255,255,.25); }
.site-nav__list .current-menu-item > a, .site-nav__list a[aria-current="page"], .site-nav__list a:hover { color: #fff; }
.site-nav__list .current-menu-item > a::after { background: var(--red); }
.site-nav .sub-menu a { display: block; padding: .6rem 1rem; color: rgba(255,255,255,.75); }
.site-nav__cta { margin-top: 1.5rem; width: 100%; justify-content: center; padding-block: 1rem; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) { .utility-bar { display: block; } }
@media (min-width: 1200px) {
.nav-toggle { display: none; }
	.js .site-nav, .site-nav { display: flex; position: static; align-items: center; gap: 1.75rem; padding: 0; border: 0; background: none; overflow: visible; max-height: none; animation: none; }
	.site-nav__list { display: flex; gap: 1.75rem; }
	.site-nav__list > li { position: relative; }
	.site-nav__list > li > a { padding: .5rem 0; border: 0; font-size: .875rem; color: rgba(255,255,255,.75); position: relative; }
	.site-nav__list > li > a::after { position: absolute; left: 0; right: 0; bottom: -4px; width: auto; height: 3px; background: transparent; }
	.site-nav__list .current-menu-item > a::after { background: var(--red); }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem; background: var(--navy-deep); padding: .5rem 0; }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	/* Contact is in the menu but also shown as the CTA on desktop. */
	.site-nav__cta { margin: 0; width: auto; padding: .65rem 1.25rem; }
}

/* Hero */
.nore-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.nore-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: -2; }
.nore-hero--home .nore-hero__bg { opacity: .45; }
.nore-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-deep), rgba(19,50,94,.85) 50%, rgba(19,50,94,.3)); }
.nore-hero__ghost { position: absolute; right: -4rem; top: 3rem; width: 26rem; height: 26rem; opacity: .07; display: none; z-index: -1; }
@media (min-width: 768px) { .nore-hero__ghost { display: block; } }
.nore-hero__inner { padding-block: 5rem 4rem; }
@media (min-width: 768px) { .nore-hero__inner { padding-block: 7rem 6rem; } }
.nore-hero__title { font-size: clamp(2.6rem, 6.4vw, 4.5rem); margin: 1.5rem 0 0; max-width: 56rem; }
.nore-hero__title--home { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.nore-hero__intro { margin: 2rem 0 0; max-width: 36rem; font-size: 1.125rem; color: rgba(255,255,255,.85); }
.nore-hero__grid { display: grid; gap: 2.5rem; align-items: center; min-height: min(80dvh, 46rem); }
.nore-hero__emblem { display: none; position: relative; place-items: center; justify-self: center; }
.nore-hero__emblem .diamond { position: absolute; transform: rotate(45deg); }
.diamond--a { width: 20rem; height: 20rem; border: 1px solid rgba(255,255,255,.06); }
.diamond--b { width: 16rem; height: 16rem; border: 1px solid rgba(220,183,103,.12); }
.nore-hero__mark { position: relative; width: 14rem; height: 14rem; opacity: .12; }
@media (min-width: 768px) { .nore-hero__grid { grid-template-columns: 1.25fr .75fr; } .nore-hero__emblem { display: grid; } }

.tide-line { height: 4px; background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 34%, var(--navy) 34%); position: relative; }
.chequer-band { height: 14px; background-image: conic-gradient(var(--navy) 25%, #fff 0 50%, var(--navy) 0 75%, #fff 0); background-size: 14px 14px; }

/* Quick links */
.quick-links { background: var(--white); }
.quick-links__grid { display: grid; padding-inline: 0; }
.quick-links__item { display: flex; justify-content: space-between; align-items: center; padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s; }
.quick-links__item:hover { background: var(--pale); }
.quick-links__title { display: block; margin-top: .25rem; font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.quick-links__arrow { color: var(--red); font-size: 1.25rem; transition: transform .2s; }
.quick-links__item:hover .quick-links__arrow { transform: translateX(4px); }
@media (min-width: 768px) { .quick-links__grid { grid-template-columns: repeat(3, 1fr); } .quick-links__item { border-bottom: 0; border-right: 1px solid var(--line); } .quick-links__item:last-child { border-right: 0; } }

/* Editable content */
.nore-content { padding-block: 4.5rem 5rem; max-width: 52rem; }
.nore-content--home { max-width: var(--wrap); }
.nore-content > * + * { margin-top: 1.25rem; }
.nore-content h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 300; color: var(--navy); line-height: 1.1; margin-top: 3.5rem; }
.nore-content h2 strong { font-weight: 800; }
.nore-content h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-top: 2.5rem; }
.nore-content p, .nore-content li { color: var(--muted); }
.nore-content .has-large-font-size, .nore-content .is-style-lead { font-size: clamp(1.6rem, 3vw, 2.4rem) !important; font-weight: 300; line-height: 1.3; color: var(--navy); }
.nore-content .has-large-font-size strong { font-weight: 800; }
.nore-content blockquote { margin-inline: 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--red); background: var(--pale); font-size: 1.25rem; color: var(--navy); }
.nore-content details { border-top: 1px solid rgba(13,38,71,.2); padding: 1.25rem 0; margin: 0; }
.nore-content details:last-of-type { border-bottom: 1px solid rgba(13,38,71,.2); }
.nore-content summary { cursor: pointer; font-size: 1.35rem; font-weight: 300; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.nore-content summary::after { content: "+"; color: var(--red); font-weight: 700; }
.nore-content details[open] summary::after { content: "–"; }
.nore-content .wp-block-columns { gap: 1.25rem; }
.nore-content .wp-block-column.is-style-card, .nore-content .wp-block-group.is-style-card,
.nore-content--home .wp-block-columns > .wp-block-column { background: var(--white); border-top: 4px solid var(--red); padding: 1.75rem; box-shadow: 0 10px 30px -20px rgba(19,50,94,.5); transition: transform .3s; }
.nore-content--home .wp-block-columns > .wp-block-column:hover { transform: translateY(-4px); }
.nore-content figure img { display: block; }
.nore-content figcaption { font-size: .75rem; color: var(--muted); }
.alignwide { max-width: var(--wrap); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.nore-meta { color: var(--muted); font-size: .875rem; font-weight: 600; }
.nore-fallback { background: var(--pale); border-left: 4px solid var(--navy); padding: 1.25rem 1.5rem; color: var(--navy) !important; font-weight: 600; }
.nore-fallback--admin { border-left-color: var(--red); font-weight: 500; font-size: .875rem; }

/* Meetings section + band */
.nore-meet { background: var(--white); border-top: 1px solid var(--line); }
.nore-meet__grid { display: grid; gap: 3.5rem; padding-block: 5rem; }
@media (min-width: 1024px) { .nore-meet__grid { grid-template-columns: .9fr 1.1fr; } }
.nore-band { background: var(--red); color: #fff; }
.nore-band__inner { display: flex; flex-direction: column; gap: 2rem; padding-block: 4rem; align-items: flex-start; }
.nore-band__title { font-size: clamp(1.9rem, 3.5vw, 2.4rem); margin: 0; }
.nore-band p { color: rgba(255,255,255,.85); max-width: 36rem; }
@media (min-width: 768px) { .nore-band__inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Posts */
.post-list { display: grid; gap: 2.5rem; }
.post-card { display: grid; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 768px) { .post-card:has(.post-card__media) { grid-template-columns: 16rem 1fr; } }
.post-card__title { margin: .25rem 0 .5rem; font-size: 1.6rem; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--red); }
.nore-empty { text-align: center; padding: 3rem 1rem; }
.nore-empty__mark { width: 5rem; height: 5rem; opacity: .2; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #fff; }
.values-band { background: var(--navy); }
.values-band__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); padding-inline: 0; }
.values-band__list li { padding: 1.5rem 1rem; text-align: center; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; border-right: 1px solid rgba(255,255,255,.1); }
@media (min-width: 768px) { .values-band__list { grid-template-columns: repeat(4, 1fr); } .values-band__list li:last-child { border-right: 0; } }
.site-footer__grid { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: .75rem; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.site-footer__mark { width: auto; height: 9rem; object-fit: contain; flex: none; }
.site-footer__about { margin-top: 1.25rem; max-width: 24rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.site-footer__label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.82); font-size: .875rem; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__ext { display: inline-flex; align-items: center; gap: .25rem; }
.site-footer__note { margin-top: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.6); }
.site-footer__base { margin: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 1.25rem; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---------- Nore Lodge Manager plugin markup (.nlm-*) ---------- */
.nore-events, .nlm-team-grid, .nlm-form { font-family: var(--font); color: var(--ink); }
.nlm-year-nav, .nlm-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.nlm-year-nav a, .nlm-year-nav button, .nlm-filter a, .nlm-filter button { border: 2px solid var(--navy); background: transparent; color: var(--navy); padding: .45rem 1rem; font: 700 .8rem/1.2 var(--font); letter-spacing: .08em; text-decoration: none; cursor: pointer; border-radius: 0; }
.nlm-year-nav [aria-current], .nlm-year-nav .is-active, .nlm-filter [aria-current], .nlm-filter .is-active, .nlm-year-nav a:hover, .nlm-filter a:hover, .nlm-year-nav button:hover, .nlm-filter button:hover { background: var(--navy); color: #fff; }
.nlm-event { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: stretch; background: var(--white); border: 1px solid var(--line); margin-bottom: .75rem; transition: transform .2s; }
.nlm-event:hover { transform: translateX(3px); }
.nlm-date { background: var(--navy); color: #fff; display: grid; place-content: center; text-align: center; padding: .9rem .5rem; font-weight: 800; line-height: 1.1; }
.nlm-date * { color: #fff; margin: 0; }
.nlm-event-body { padding: 1rem 1.25rem 1rem 0; }
.nlm-event-body h3, .nlm-event-body h4 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.nlm-event-body p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.nlm-button, .nlm-form button[type="submit"], .nlm-form input[type="submit"] { display: inline-flex; align-items: center; gap: .5rem; background: var(--red); color: #fff !important; border: 0; border-radius: 0; padding: .85rem 1.5rem; font: 700 .875rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s; }
.nlm-button:hover, .nlm-form button[type="submit"]:hover { background: var(--red-hover); }
.nlm-team-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.nlm-member { background: var(--white); border-top: 4px solid var(--red); box-shadow: 0 10px 30px -20px rgba(19,50,94,.5); padding: 1.5rem; }
.nlm-member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; margin-bottom: 1rem; }
.nlm-member h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.nlm-member p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.nlm-form { display: grid; gap: 1.25rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: clamp(1.25rem, 4vw, 2.5rem); }
.nlm-field { display: grid; gap: .4rem; margin: 0; }
.nlm-field label, .nlm-form legend { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.nlm-field input:not([type="checkbox"]):not([type="radio"]), .nlm-field select, .nlm-field textarea { width: 100%; font: 500 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid #9fb2cc; border-radius: 0; padding: .8rem .9rem; }
.nlm-field textarea { min-height: 9rem; resize: vertical; }
.nlm-field input:focus, .nlm-field select:focus, .nlm-field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); background: #fff; }
.nlm-field [aria-invalid="true"] { border-color: var(--red); }
.nlm-notice, .nlm-error { padding: 1rem 1.25rem; border-left: 4px solid var(--navy); background: var(--pale); color: var(--navy); font-weight: 600; }
.nlm-error { border-left-color: var(--red); background: #fbecea; color: #7a1206; }

/* Motion */
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.kenburns { animation: kenburns 14s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.draw path { stroke-dasharray: 200; animation: draw 2.2s cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kenburns, .draw path, .site-nav.is-open { animation: none; stroke-dasharray: none; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
