/* Voss Golf: layout and component styles. Colours, fonts and spacing come from theme.json tokens. */

/* Header */
.vg-header { position: relative; z-index: 20; }
.vg-header__bar { margin: 0; gap: var(--wp--preset--spacing--30); align-items: center; min-height: 5.5rem; } /* 5.5rem: the fixed Meny button (top 1.25rem, 3rem high) is centred on the same line as the logo */
.vg-header .wp-block-site-logo img { height: auto; max-width: 100%; border-radius: 0; }

/* Plain menu (footer) */
.vg-menu, .vg-menu ul { list-style: none; margin: 0; padding: 0; }
.vg-footer .vg-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.vg-footer .vg-menu a { display: block; padding: .25rem 0; color: var(--wp--preset--color--base); text-decoration: underline; }
.vg-footer a { color: var(--wp--preset--color--base); }
.vg-footer :focus-visible { outline-color: var(--wp--preset--color--base); }

/* Language switcher and search */
.vg-lang ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.vg-lang a { display: inline-block; min-width: 2.75rem; padding: .6rem .5rem; text-align: center; text-decoration: none; font-weight: 700; font-size: var(--wp--preset--font-size--small); border-radius: var(--wp--custom--button-radius); }
.vg-lang a[aria-current] { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.vg-search { display: flex; gap: .5rem; }
.vg-search input[type="search"] { min-width: 0; width: 8.5rem; max-width: 100%; padding: .6rem .8rem; border: 2px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius); font: inherit; font-size: var(--wp--preset--font-size--small); }
.vg-search button { padding: .6rem 1rem; border: 0; border-radius: var(--wp--custom--button-radius); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); font: inherit; font-size: var(--wp--preset--font-size--small); font-weight: var(--wp--custom--button-weight); cursor: pointer; }
.vg-search button:hover { background: var(--wp--preset--color--accent); }

/* Cards */
.vg-cards { display: grid; gap: var(--wp--preset--spacing--40); margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .vg-cards { grid-template-columns: repeat(min(var(--vg-cols, 2), 2), 1fr); } }
@media (min-width: 62rem) { .vg-cards { grid-template-columns: repeat(var(--vg-cols, 2), 1fr); } }
.vg-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius); }
.vg-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wp--preset--color--border); }
.vg-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-card__body { display: flex; flex-direction: column; gap: .4rem; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40); }
.vg-card__date { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.vg-card__title { margin: 0; font-size: var(--wp--preset--font-size--large); }
.vg-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.vg-card__title a::after { content: ""; position: absolute; inset: 0; }
.vg-card:hover .vg-card__title a { text-decoration: underline; }
.vg-card__excerpt { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.vg-card a:focus-visible::after { outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent); outline-offset: -3px; }
.vg-loop-card { height: 100%; }
.vg-loop-card .wp-block-post-title { margin: 0; }
.vg-loop-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.vg-pagination ul, .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.vg-pagination { margin-top: var(--wp--preset--spacing--40); }
.vg-pagination a, .vg-pagination span { display: inline-block; min-width: 2.75rem; padding: .6rem .8rem; text-align: center; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius); text-decoration: none; }
.vg-pagination .current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

/* Builder-rendered pages (old front page, sponsors, accommodation, GolfBox) */
.vg-builder { margin-block: 0; }
.vg-section { padding-block: var(--wp--preset--spacing--50); }
.vg-section__inner { max-width: var(--wp--style--global--wide-size, 76rem); margin-inline: auto; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); }
.vg-section--hero { padding: 0; }
.vg-section--hero .vg-section__inner { max-width: none; }
.vg-row { display: grid; gap: var(--wp--preset--spacing--40); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; }
.vg-col { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); min-width: 0; }
.vg-headline { margin: 0; }
.vg-text > :first-child, .vg-html > :first-child { margin-top: 0; }
.vg-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--wp--custom--radius); background: var(--wp--preset--color--primary); }
.vg-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .85; }
.vg-tile .vg-buttons { padding: var(--wp--preset--spacing--30); }
.vg-tile .vg-button { color: var(--wp--preset--color--base); font-size: var(--wp--preset--font-size--large); font-weight: var(--wp--custom--button-weight); text-decoration: none; }
.vg-tile .vg-button::after { content: " →"; }
.vg-tile .vg-button::before { content: ""; position: absolute; inset: 0; }
.vg-tile:hover .vg-button { text-decoration: underline; }
.vg-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.vg-button { display: inline-block; }
.vg-row > .vg-col > .vg-buttons .vg-button, .vg-section .vg-col > .vg-buttons .vg-button { padding: .75rem 1.5rem; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); border-radius: var(--wp--custom--button-radius); font-weight: var(--wp--custom--button-weight); text-decoration: none; }
.vg-row > .vg-col > .vg-buttons .vg-button:hover { background: var(--wp--preset--color--primary); }
.vg-figure { margin: 0; }
.vg-figure img { display: block; max-width: 100%; height: auto; }
.vg-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--wp--preset--spacing--30); align-items: center; margin: 0; padding: 0; list-style: none; }
.vg-logos li { display: flex; align-items: center; justify-content: center; padding: .75rem; background: var(--wp--preset--color--base); border: 0; border-radius: var(--wp--custom--radius); min-height: 6rem; }
.vg-logos img { display: block; width: auto; max-width: 100%; max-height: 4.5rem; object-fit: contain; }

/* Hero */
.vg-hero { position: relative; background: var(--wp--preset--color--primary); }
.vg-hero__image { display: block; width: 100%; height: clamp(18rem, 55vw, 36rem); object-fit: cover; }
.vg-hero__text { position: absolute; inset: auto 0 0 0; padding: clamp(1.5rem, 5vw, 3.5rem) var(--wp--preset--spacing--30); color: var(--wp--preset--color--base); background: linear-gradient(to top, rgb(20 30 38 / .85), rgb(20 30 38 / 0)); }
.vg-hero__text > * { max-width: 46rem; margin-inline: auto; }
.vg-hero__text > * { margin-block: 0 .5rem; }
.vg-hero__title { color: var(--wp--preset--color--base); }
.vg-hero__text p { font-size: var(--wp--preset--font-size--large); }

/* Map, GolfBox form */
.vg-map { margin: 0; }
.vg-map iframe { display: block; width: 100%; border: 0; border-radius: var(--wp--custom--radius); }
.vg-map figcaption { margin-top: .5rem; font-size: var(--wp--preset--font-size--small); }
.vg-html .form-inline { display: flex; flex-flow: row wrap; gap: .75rem; align-items: center; }
.vg-html .form-inline input, .vg-html input[type="text"], .vg-html input[type="password"] { padding: .6rem .8rem; border: 2px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius); font: inherit; }
.vg-html .form-inline button, .vg-html button, .vg-html input[type="submit"] { padding: .7rem 1.4rem; border: 0; border-radius: var(--wp--custom--button-radius); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); font: inherit; font-weight: var(--wp--custom--button-weight); cursor: pointer; }
.vg-html .form-inline img { max-width: 9.5rem; height: auto; }
@media (max-width: 40rem) { .vg-html .form-inline { flex-direction: column; align-items: stretch; } }

/* Tables and embeds in old content scroll instead of breaking the layout */
.entry-content table, .wp-block-post-content table { display: block; max-width: 100%; overflow-x: auto; }
.wp-block-post-content iframe, .wp-block-post-content video { max-width: 100%; }
.wp-block-post-content img { height: auto; }

/* One-column lists: image beside the text */
@media (min-width: 40rem) {
	.vg-cards--list .vg-card { flex-direction: row; }
	.vg-cards--list .vg-card__media { flex: 0 0 12rem; aspect-ratio: auto; }
	.vg-cards--list .vg-card__body { justify-content: center; }
}

/* Featured video replaces the featured image when a post has one */
.vg-video { aspect-ratio: 16 / 9; }
.vg-video iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--wp--custom--radius); }
.vg-video ~ .wp-block-post-featured-image { display: none; }

/* Empty paragraphs left around shortcodes in old content */
.vg-text p:empty, .vg-html p:empty { display: none; }

/* Query Loop cards: crop every featured image to the same box */
.vg-loop-card .wp-block-post-featured-image { width: 100%; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wp--preset--color--border); border-radius: var(--wp--custom--radius); }
.vg-loop-card .wp-block-post-featured-image a { display: block; height: 100%; }
.vg-loop-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Front page content (native blocks) */
.vg-front-content { padding-bottom: var(--wp--preset--spacing--60); }
.vg-front-content > * { margin-block: 0; }
.vg-front-content > * + * { margin-top: var(--wp--preset--spacing--40); }
.vg-front-content > h2, .vg-front-content > .vg-news, .vg-front-content > .vg-front--course { margin-top: var(--wp--preset--spacing--60); }
.vg-front-content > h2 + * { margin-top: var(--wp--preset--spacing--30); }
.vg-front-content > .vg-more { margin-top: var(--wp--preset--spacing--30); font-weight: 600; }
.vg-tiles.wp-block-columns { gap: var(--wp--preset--spacing--40); }
.vg-tiles .vg-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--wp--preset--color--primary); border-radius: var(--wp--custom--radius); }
.vg-tiles .vg-tile .wp-block-image { margin: 0; }
.vg-tiles .vg-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; opacity: .85; }
.vg-tiles .vg-tile h3 { margin: 0; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); }
.vg-tiles .vg-tile h3 a { color: var(--wp--preset--color--base); text-decoration: none; }
.vg-tiles .vg-tile h3 a::after { content: " →"; }
.vg-tiles .vg-tile h3 a::before { content: ""; position: absolute; inset: 0; }
.vg-tiles .vg-tile:hover h3 a { text-decoration: underline; }
.vg-news .wp-block-post-template { gap: var(--wp--preset--spacing--40); }
.vg-logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--wp--preset--spacing--30); align-items: stretch; }
.vg-logos-grid > * { margin: 0; }
.vg-logos-grid .wp-block-image { display: flex; align-items: center; justify-content: center; min-height: 6rem; padding: .75rem; background: var(--wp--preset--color--base); border: 0; border-radius: var(--wp--custom--radius); }
.vg-logos-grid .wp-block-image a { display: flex; }
.vg-logos-grid .wp-block-image img { width: auto; max-width: 100%; max-height: 4.5rem; object-fit: contain; border-radius: 0; }
.vg-logos-grid + .vg-logos-grid { margin-top: var(--wp--preset--spacing--40); }

/* Front page: hero text on the page grid, spacing between blocks */
.vg-front-content > .vg-tiles, .vg-front-content > .vg-html { margin-top: var(--wp--preset--spacing--40); }

/* Hero (front page): full screen, photo untouched, white serif type anchored bottom-left */
.vg-front-content > .vg-hero-cover.wp-block-cover { min-height: 100vh !important; min-height: 100svh !important; padding: 0; align-items: flex-end; justify-content: flex-start; margin-block: 0; font-family: var(--wp--preset--font-family--serif); }
.vg-hero-cover .wp-block-cover__inner-container { width: 100%; padding: 0 clamp(1rem, 5vw, 4.5rem) clamp(2rem, 9vh, 6rem); }
.vg-hero-panel { --vg-hero-h1: clamp(3rem, 8.5vw, 7.5rem); --vg-hero-indent: calc(var(--vg-hero-h1) * .1); width: min(100%, 52rem); color: var(--wp--preset--color--base); text-shadow: 0 1px 3px rgb(0 0 0 / .55), 0 2px 28px rgb(0 0 0 / .45); }
.vg-hero-panel > * { margin-block: 0; }
.vg-hero-panel > * + * { margin-top: var(--wp--preset--spacing--30); }
.vg-hero-panel .wp-block-heading { font-family: var(--wp--preset--font-family--gilda-display); font-size: var(--vg-hero-h1); font-weight: 400; line-height: 1; letter-spacing: -0.05em; text-wrap: balance; color: var(--wp--preset--color--base); }
.vg-hero-panel p { max-width: 36rem; font-family: var(--wp--preset--font-family--inter); font-size: clamp(1.1rem, 1.6vw, 1.375rem); font-weight: 200; line-height: 1.5; color: var(--wp--preset--color--base); }
.vg-hero-panel .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); text-shadow: none; }
.vg-hero-panel .wp-block-button__link { font-size: 1.125rem; font-weight: var(--wp--custom--button-weight); border: 2px solid var(--wp--preset--color--base); border-radius: var(--wp--custom--button-radius); }
.vg-hero-panel .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--base); }
.vg-hero-panel .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.vg-hero-panel .is-style-outline .wp-block-button__link { background: rgb(255 255 255 / .12); color: var(--wp--preset--color--base); backdrop-filter: blur(6px); }
.vg-hero-panel .is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* Soft corner scrim behind the hero text only (keeps white text at WCAG AA); the rest of the photo is untouched */
.vg-hero-cover::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 100% 90% at 0% 100%, rgb(8 16 22 / .74) 0%, rgb(8 16 22 / .64) 42%, rgb(8 16 22 / 0) 92%); }
.vg-hero-cover .wp-block-cover__inner-container { position: relative; z-index: 1; }

/* Mega menu: a button fixed top-right opens a full-height panel from the right (native <dialog>), fade only */
.vg-mega, .vg-mega *, .vg-mega *::before, .vg-mega *::after, .vg-mega-trigger { box-sizing: border-box; }

/* The menu and close buttons share one box and one position, so Close sits exactly over Menu. */
:root { --vg-edge: 1.25rem; } /* distance from the right edge: Menu/Close buttons and the status bar line up */
.vg-mega-trigger, .vg-mega__close { position: fixed; top: 1.25rem; right: var(--vg-edge); z-index: 100; display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; width: 8.5rem; height: 3rem; padding: 0 1rem; border: 2px solid var(--wp--preset--color--base); border-radius: var(--wp--custom--button-radius); font-family: var(--wp--preset--font-family--inter); font-size: .875rem; font-weight: var(--wp--custom--button-weight); line-height: 1; cursor: pointer; }
body.admin-bar .vg-mega-trigger, body.admin-bar .vg-mega__close { top: calc(1.25rem + 32px); }
@media (max-width: 782px) { body.admin-bar .vg-mega-trigger, body.admin-bar .vg-mega__close { top: calc(1.25rem + 46px); } }
.vg-mega-trigger { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.vg-mega-trigger[hidden] { display: none; }
.vg-mega-trigger:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.vg-mega-trigger__icon, .vg-mega-trigger__icon::before, .vg-mega-trigger__icon::after { display: block; width: 1.25rem; height: 2px; background: currentcolor; content: ""; }
.vg-mega-trigger__icon { position: relative; }
.vg-mega-trigger__icon::before { position: absolute; top: -6px; }
.vg-mega-trigger__icon::after { position: absolute; top: 6px; }
.vg-mega__close { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.vg-mega__close:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); }
.vg-mega__close-icon { position: relative; width: 1.1rem; height: 1.1rem; }
.vg-mega__close-icon::before, .vg-mega__close-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentcolor; transform: rotate(45deg); }
.vg-mega__close-icon::after { transform: rotate(-45deg); }

.vg-mega { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--base); overflow: hidden; opacity: 0; transition: opacity .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; }
.vg-mega[open] { opacity: 1; }
@starting-style { .vg-mega[open] { opacity: 0; } }
.vg-mega:not([open]) { display: none; }
.vg-mega::backdrop { background: transparent; }
@media (prefers-reduced-motion: reduce) { .vg-mega { transition: none; } }
.vg-mega :focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; }
.vg-mega a { color: var(--wp--preset--color--base); }

.vg-mega__panel { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); width: min(100%, 44rem); height: 100%; margin-left: auto; padding: 5.5rem clamp(1.25rem, 4vw, 3.5rem) var(--wp--preset--spacing--50); overflow-y: auto; overscroll-behavior: contain; background: var(--wp--preset--color--primary); }
.vg-mega__panel:focus, .vg-mega__panel:focus-visible { outline: 0; }
.vg-mega__top { height: 0; }

.vg-mega__list, .vg-mega__sub { margin: 0; padding: 0; list-style: none; }
.vg-mega__item { border-bottom: 1px solid rgb(255 255 255 / .22); }
.vg-mega__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vg-mega__link { flex: 1; display: block; padding: .5rem 0; font-family: var(--wp--preset--font-family--inter); font-size: clamp(.95rem, 2.1vw, 1.375rem); font-weight: 300; line-height: 1.2; text-decoration: none; }
.vg-mega__link:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.vg-mega__link[aria-current="page"], .vg-mega__item.is-current > .vg-mega__row > .vg-mega__link { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.vg-mega__expand { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border: 2px solid rgb(255 255 255 / .55); border-radius: var(--wp--custom--button-radius); background: transparent; color: var(--wp--preset--color--base); cursor: pointer; }
.vg-mega__expand:hover { background: rgb(255 255 255 / .15); }
.vg-mega__expand::before, .vg-mega__expand::after { content: ""; position: absolute; top: 50%; left: 50%; width: .625rem; height: 2px; background: currentcolor; transform: translate(-50%, -50%); }
.vg-mega__expand::after { transform: translate(-50%, -50%) rotate(90deg); }
.vg-mega__expand[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0); }
.vg-mega__sub { padding: .25rem 0 1rem; columns: 2 12rem; column-gap: 2rem; }
.vg-mega__sub[hidden] { display: none; }
.vg-mega__sub .vg-mega__item { border: 0; break-inside: avoid; }
.vg-mega__sub .vg-mega__link { padding: .35rem 0; font-size: .875rem; font-weight: 300; line-height: 1.3; }

.home .wp-site-blocks > main { margin-block-start: 0; }

/* Language chooser: small, top-left corner of the page, scrolls with the page (not fixed) */
.wp-site-blocks { position: relative; }
.vg-header { padding: 0 1rem; }
.vg-lang-corner { position: absolute; top: 1rem; left: 1rem; z-index: 90; margin: 0; }
.vg-lang-corner .vg-lang { background: var(--wp--preset--color--base); }
.vg-lang-corner .vg-lang ul { gap: 0; }
.vg-lang-corner .vg-lang a { box-sizing: border-box; min-width: 2rem; min-height: 1.75rem; padding: .4rem .5rem; font-size: .75rem; line-height: 1; letter-spacing: .02em; color: var(--wp--preset--color--contrast); }
.vg-lang-corner .vg-lang a:hover { background: var(--wp--preset--color--surface); }
.vg-lang-corner .vg-lang a[aria-current] { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

/* Visually hidden text (read by screen readers); the theme defines it itself rather than rely on core */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; word-wrap: normal; }
.screen-reader-text:focus { position: static; width: auto; height: auto; margin: 0; clip-path: none; }
/* Fixed menu button must not pick up the block gap margin that sibling elements get */
.vg-mega-trigger { margin: 0; }
.vg-lang-corner .vg-lang li { display: flex; line-height: 1; }

/* GolfBox login button in the mega menu: NGF's own button, made square and aligned to the menu */
.vg-mega__login { padding-top: var(--wp--preset--spacing--30); }
.vg-mega .golfboxLoginOpenBtnLight { margin: 0; border-radius: var(--wp--custom--button-radius); }
.vg-mega .golfboxLoginOpenBtnLight:hover { background-color: #fff; }
.vg-mega .golfboxLoginOpenBtnLight:focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; }

/* Hero actions: the membership button and the GolfBox login button side by side */
.vg-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp--preset--spacing--30); margin-top: var(--wp--preset--spacing--40); }
.vg-hero-actions > * { margin: 0; }
.vg-hero-panel .vg-hero-actions .wp-block-buttons { margin: 0; }
.vg-hero-actions .golfboxLoginOpenBtnLight { margin: 0; padding: 14px 15px; border-radius: var(--wp--custom--button-radius); text-shadow: none; }
.vg-hero-actions .golfboxLoginOpenBtnLight:hover { background-color: #fff; }
.vg-hero-actions .golfboxLoginOpenBtnLight:focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; }

/* Hero: the heading hangs slightly to the left of the text and buttons below it (indent scales with the heading) */
.vg-hero-panel > :not(.wp-block-heading) { margin-left: var(--vg-hero-indent); }
.vg-hero-panel p { text-wrap: pretty; }

/* Hero heading: kerning of the capital V and the letter after it, adjustable separately.
   Edit --vg-kern-ve (V+e, "Velkomen") and --vg-kern-vo (V+o, "Voss") below, in em of the heading size.
   0em = the spacing the font gives by default; negative = tighter, positive = looser.
   (A span with its own letter-spacing makes the browser drop the font's built-in V+e / V+o kerning,
   about -0.11em in Gilda Display; the rule adds it back so that 0em means "unchanged".) */
.vg-hero-panel { --vg-kern-ve: 0.05em; --vg-kern-vo: 0.05em; --vg-heading-spacing: -0.05em; --vg-font-kern-v: -0.11em; }
.vg-hero-panel .vg-kern-ve { letter-spacing: calc(var(--vg-heading-spacing) + var(--vg-font-kern-v) + var(--vg-kern-ve)); }
.vg-hero-panel .vg-kern-vo { letter-spacing: calc(var(--vg-heading-spacing) + var(--vg-font-kern-v) + var(--vg-kern-vo)); }

/* All button text is Inter, whatever font the surrounding block uses */
button, input[type="submit"], input[type="button"], .wp-element-button, .wp-block-button__link, .wpforms-submit, .golfboxLoginOpen { font-family: var(--wp--preset--font-family--inter); }

/* GolfBox login box submit button follows the same weight (vendor CSS sets 600) */
.ngfGbModal-container .ngfGbModal-login-button { font-weight: var(--wp--custom--button-weight); }

/* Facility status (hero): white text on the photo, a coloured dot with a white ring per item.
   Desktop: lower-right corner, right edge in line with the Menu button, bottom in line with the hero buttons.
   Wide screens one row, medium screens stacked, narrow screens under the buttons. */
.vg-status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--inter); font-size: .9375rem; line-height: 1.3; text-shadow: 0 1px 3px rgb(0 0 0 / .55), 0 2px 18px rgb(0 0 0 / .45); }
.vg-status__item { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; }
.vg-status__item + .vg-status__item { border-top: 1px solid rgb(255 255 255 / .45); }
.vg-status__dot { flex: none; box-sizing: border-box; width: .95rem; height: .95rem; border: 2px solid var(--wp--preset--color--base); border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.vg-status__item.is-closed .vg-status__dot { background: var(--wp--preset--color--status-closed); }
.vg-hero-cover .vg-status { width: min(100%, 22rem); margin-top: var(--wp--preset--spacing--40); }
@media (min-width: 64rem) {
	.vg-hero-cover .vg-status { position: absolute; right: var(--vg-edge); bottom: clamp(2rem, 9vh, 6rem); margin: 0; width: auto; min-width: 15rem; }
}
@media (min-width: 80rem) {
	.vg-hero-cover .vg-status { flex-direction: row; min-width: 0; }
	.vg-status__item { padding: .6rem 1.25rem; }
	.vg-status__item:last-child { padding-right: 0; }
	.vg-status__item + .vg-status__item { border-top: 0; border-left: 1px solid rgb(255 255 255 / .45); }
}
/* Hero: the content container must span the full cover. WordPress sets width:auto on it for this content position,
   which makes it only as wide as its widest content (about 1536px) on large screens; the status bar is positioned
   against this box, so it has to reach the screen edge. */
.vg-front-content .vg-hero-cover.wp-block-cover.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }

/* Hero: space between the text and the buttons below it (adjust --vg-hero-actions-gap) */
.vg-hero-panel { --vg-hero-actions-gap: clamp(1.5rem, 2.5vw, 2rem); }
.vg-hero-panel > .vg-hero-actions { margin-top: var(--vg-hero-actions-gap); }

/* Front page columns: cards in the style of the sponsor cards on vossgolf.no.
   Values taken as-is from that site's CSS (.sponsors, .sponsor-grid li): white card, 1px #e5e5e7 border,
   18px 22px padding, hover: 0 4px 14px rgba(0,0,0,.06) shadow, .2s; the cards sit on a #f7f7f7 band. Square corners.
   The 1px #e5e5e7 border (hover #b4b5ba) used there has been removed here on request. */
:root { --vg-card-band: #f7f7f7; }
.vg-band { margin-block: 0; padding: 72px 16px 64px; background: var(--vg-card-band); }
.vg-band > .wp-block-columns { max-width: 76rem; margin: 0 auto; gap: 16px; }
.vg-front-cols > .wp-block-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; }
.vg-tile-card, .vg-news-card { position: relative; margin: 0; background: #fff; border: 0; border-radius: 0; transition: box-shadow .2s; }
.vg-tile-card:hover, .vg-news-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }

.vg-tile-card { display: flex; flex-direction: column; }
.vg-tile-card .wp-block-image { margin: 0; }
.vg-tile-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.vg-tile-card .wp-block-heading { margin: 0; padding: 18px 22px; font-size: 1.375rem; line-height: 1.2; }
.vg-tile-card .wp-block-heading a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.vg-tile-card .wp-block-heading a::after { content: ""; position: absolute; inset: 0; }
.vg-tile-card .wp-block-heading a:focus-visible { outline: none; }
.vg-tile-card:has(a:focus-visible) { outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent); outline-offset: 3px; }
.vg-tile-card p { margin: -6px 0 0; padding: 0 22px 18px; color: var(--wp--preset--color--muted); font-size: .9375rem; line-height: 1.5; }
/* The simulator card is a normal card; its photo is portrait, so crop it 4:3 around the screen. */
.vg-tile-card--sim img { aspect-ratio: 4 / 3; object-position: 50% 40%; }

.vg-col-heading { margin: 0 0 2px; font-size: 1.75rem; line-height: 1.2; }
.vg-news-list .wp-block-post-template { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.vg-news-card { display: flex; align-items: stretch; }
.vg-news-card .wp-block-post-featured-image { flex: 0 0 6rem; margin: 0; }
.vg-news-card .wp-block-post-featured-image a { display: block; height: 100%; }
.vg-news-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; min-height: 5.5rem; object-fit: cover; border-radius: 0; }
.vg-news-card__text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 14px 18px; }
.vg-news-card .wp-block-post-title { margin: 0; font-size: 1.125rem; line-height: 1.25; }
.vg-news-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.vg-news-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.vg-news-card .wp-block-post-date { margin: 0; font-size: .8125rem; }
.vg-news-card:has(a:focus-visible) { outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--accent); outline-offset: 3px; }
.vg-news-more { margin: 2px 0 0; font-size: .9375rem; font-weight: 600; }

@media (max-width: 63.99rem) {
	.vg-front-cols { flex-wrap: wrap !important; }
	.vg-front-cols > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 47.5rem) { .vg-band { padding-top: 56px; } }

/* Video modal (assets/js/video-modal.js) */
.vg-video-modal { position: fixed; inset: 0; box-sizing: border-box; width: min(calc(100vw - 2rem), 70rem); max-width: none; height: fit-content; max-height: calc(100vh - 7rem); margin: auto; padding: 0; border: 0; border-radius: 0; background: #000; overflow: visible; }
.vg-video-modal::backdrop { background: rgb(0 0 0 / .82); }
.vg-video-modal__frame { aspect-ratio: 16 / 9; width: 100%; }
.vg-video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vg-video-modal__close { position: absolute; right: 0; bottom: 100%; margin-bottom: .5rem; box-sizing: border-box; height: 2.75rem; padding: 0 1.1rem; border: 2px solid #fff; border-radius: var(--wp--custom--button-radius); background: transparent; color: #fff; font-family: var(--wp--preset--font-family--inter); font-size: .875rem; font-weight: var(--wp--custom--button-weight); cursor: pointer; }
.vg-video-modal__close:hover { background: #fff; color: #000; }
.vg-video-modal :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vg-front-cols > .wp-block-column > * { margin-block: 0; } /* spacing between items is the column gap (16px, as in the sponsor grid) */
.vg-news-list .wp-block-post-template > li { margin: 0; } /* WordPress adds its own block gap on top of the 16px */

/* Front page: no rounded corners anywhere (cards, sponsor boxes, images). The status dots stay round on purpose.
   Scoped to the front page; on other pages the shared --wp--custom--radius (theme.json) still applies. */
body.home { --wp--custom--radius: 0; }
/* The GolfBox login box comes from NGF's stylesheet (4px); square it too. */
.ngfGbModal-container .ngfGbModal-inner { border-radius: 0; }

/* Footer badges (Grasrotandelen, Kayak): logos on white tiles so they read on the dark footer */
.vg-footer__row { margin-top: var(--wp--preset--spacing--40); }
.vg-footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.vg-footer-badges > * { margin: 0; }
.vg-footer-badges .wp-block-image { display: flex; align-items: center; justify-content: center; height: 4.5rem; padding: .6rem .9rem; background: #fff; }
.vg-footer-badges .wp-block-image a { display: flex; align-items: center; height: 100%; }
.vg-footer-badges .wp-block-image img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.vg-footer-badges .wp-block-image a:focus-visible { outline-color: var(--wp--preset--color--accent); }

/* Footer: contact on the left, partner badges on the right (no menu links: the Menu button is the navigation) */
.vg-footer__pattern { margin-left: auto; }
.vg-footer__pattern .vg-footer-badges { justify-content: flex-end; }
@media (max-width: 47.5rem) { .vg-footer__pattern { margin-left: 0; } .vg-footer__pattern .vg-footer-badges { justify-content: flex-start; } }

/* No-JavaScript fallback for the menu: shown only when scripting is off (inside <noscript>) */
.vg-mega-noscript { padding: 1rem var(--wp--preset--spacing--30); background: var(--wp--preset--color--primary); }
.vg-mega-noscript ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.vg-mega-noscript .vg-mega__item { border: 0; }
.vg-mega-noscript .vg-mega__row { display: block; }
.vg-mega-noscript a { color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--inter); font-size: .9375rem; text-decoration: underline; }
.vg-mega-noscript .vg-mega__sub, .vg-mega-noscript .vg-mega__sub[hidden] { display: flex; flex-direction: column; columns: auto; padding: .25rem 0 .5rem; }
.vg-header__bar:has(.vg-mega-noscript) { flex-wrap: wrap; } /* only exists when scripting is off */
noscript:has(> .vg-mega-noscript) { flex: 1 1 100%; min-width: 0; }

/* Sponsors heading (the heading right above the logo grid): centred, smaller, thin */
.vg-front-content > h2:has(+ .vg-logos-grid) { text-align: center; font-size: 1.75rem; }

/* Landing pages (Prisar, Golfsimulator): one light band with white square cards, in the structure of the wireframes.
   Built from ordinary blocks with these classes, so everything is edited in the editor; patterns in /patterns insert them. */
.vg-band > * { max-width: 76rem; margin-inline: auto; }
.vg-page-band > * + * { margin-top: 16px; }
.vg-page-band > .vg-section-head { margin-top: 56px; }
.vg-eyebrow { margin: 0; font-family: var(--wp--preset--font-family--inter); font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.vg-page-title { margin: .25rem 0 0; font-family: var(--wp--preset--font-family--gilda-display); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.vg-lead { max-width: 36rem; margin: 0; font-size: 1.125rem; font-weight: 300; line-height: 1.55; color: var(--wp--preset--color--muted); }
.vg-page-intro { padding-bottom: 16px; }
.vg-page-intro > * + * { margin-top: 1rem; }
.vg-card-block, .vg-panel, .vg-rate { background: #fff; border-radius: 0; }
.vg-card-block, .vg-panel { padding: clamp(1.25rem, 2.5vw, 2rem); }
.vg-card-block > * { margin-block: 0; }
.vg-card-block > * + * { margin-top: 1rem; }
.vg-card-text { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.vg-card-title { margin: .5rem 0 .75rem; font-family: var(--wp--preset--font-family--gilda-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.1; }

/* intro card + key figures */
.vg-split.wp-block-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.vg-split > .wp-block-column { flex-basis: auto; min-width: 0; margin: 0; }
.vg-split .vg-panel { height: 100%; box-sizing: border-box; }
.vg-panel--intro > * { margin-block: 0; }
.vg-panel--intro > * + * { margin-top: 1rem; }
.vg-panel--intro .vg-eyebrow + .vg-page-title { margin-top: .5rem; }
.vg-panel--intro .wp-block-buttons { margin-top: 1.5rem; }
.vg-note { font-size: .8125rem; color: var(--wp--preset--color--muted); }
.vg-stats { display: flex; flex-direction: column; padding: 0; }
.vg-stat { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 2rem; }
.vg-stat + .vg-stat { border-top: 1px solid var(--vg-card-band); }
.vg-stat > * { margin: 0; }
.vg-stat__num { font-family: var(--wp--preset--font-family--gilda-display); font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; }
.vg-stat__label { margin-top: .35rem; font-size: .875rem; color: var(--wp--preset--color--muted); }
.vg-status--inline { margin: 0; color: var(--wp--preset--color--contrast); font-size: 1rem; font-weight: 600; text-shadow: none; }
.vg-status--inline .vg-status__item { padding: 0; }
.vg-status--inline .vg-status__dot { box-shadow: none; }

/* section heading with a note on the right */
.vg-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e5e7; }
.vg-section-head > * { margin-block: 0; }
.vg-section-head__text > * { margin-block: 0; }
.vg-section-title { margin-top: .25rem; font-family: var(--wp--preset--font-family--gilda-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.1; }
.vg-section-note { font-size: .9375rem; color: var(--wp--preset--color--muted); }
.vg-section-note:empty { display: none; }

/* price cards */
.vg-price-cards.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 16px; }
.vg-price-cards > .wp-block-column { flex-basis: auto; min-width: 0; margin: 0; }
.vg-price-cards .vg-card-block { height: 100%; box-sizing: border-box; }
.vg-price { margin: 1.25rem 0 1rem; font-family: var(--wp--preset--font-family--gilda-display); font-size: clamp(2.25rem, 3.5vw, 3rem); line-height: 1; }
.vg-price__unit { margin-left: .35rem; font-family: var(--wp--preset--font-family--inter); font-size: .875rem; color: var(--wp--preset--color--muted); }

/* link cards (hub) */
.vg-page-intro + .vg-link-cards { margin-top: 32px; }
.vg-link-cards.wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vg-link-cards > .wp-block-column { flex-basis: auto; min-width: 0; margin: 0; }
.vg-link-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.vg-link-card .vg-card-figure, .vg-link-card .vg-minis { margin-top: auto; padding-top: 1.5rem; }
.vg-card-figure > *, .vg-minis > *, .vg-mini > * { margin-block: 0; }
.vg-from { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.vg-card-figure .vg-price { margin: .5rem 0 0; }
.vg-minis { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.vg-mini__label { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.vg-mini__value { margin-top: .35rem; font-family: var(--wp--preset--font-family--gilda-display); font-size: 1.5rem; line-height: 1.1; }
.vg-card-link { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--vg-card-band); font-size: .9375rem; font-weight: 500; }
.vg-card-link a { color: var(--wp--preset--color--primary); }

/* rate rows */
.vg-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vg-rates > * { margin: 0; }
.vg-rate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }
.vg-rate > * { margin-block: 0; }
.vg-rate__what > * { margin-block: 0; }
.vg-rate__title { font-weight: 600; }
.vg-rate__sub { font-size: .8125rem; color: var(--wp--preset--color--muted); }
.vg-rate__price { font-family: var(--wp--preset--font-family--gilda-display); font-size: 1.375rem; white-space: nowrap; }

/* text card (the page's older text, kept) */
.vg-card-block--text > .vg-eyebrow { margin-bottom: 1rem; }
.vg-card-block--text ul { margin: .5rem 0; padding-left: 1.25rem; }

@media (max-width: 63.99rem) {
	.vg-split.wp-block-columns, .vg-link-cards.wp-block-columns, .vg-rates { grid-template-columns: 1fr; }
	.vg-stats { flex-direction: row; }
	.vg-stat + .vg-stat { border-top: 0; border-left: 1px solid var(--vg-card-band); }
	.vg-stat { flex: 1 1 0; padding: 1.25rem 1.5rem; }
}

/* landing page spacing details */
.wp-site-blocks > main:has(> .vg-landing) { margin-block-start: 0; } /* the band starts right under the header */
.vg-panel--intro .vg-status--inline { margin-top: 1.5rem; }
.vg-card-block > .vg-eyebrow + * { margin-top: .75rem; }
.vg-card-block > .vg-card-text + .vg-card-text { margin-top: .75rem; }

/* Header on subpages: a crop of the front page hero photo (assets/img/header-bg.jpg, made by migrations/make-header-crop.php).
   The dark blue colour from the template part shows while the image loads; the gradient keeps the white logo readable. */
.vg-header { background-image: linear-gradient(90deg, rgb(20 38 50 / .55), rgb(20 38 50 / .15) 55%, transparent), url("../img/header-bg.jpg"); background-size: cover; background-position: center; }

/* Narrow screens: the logo cannot share the row with the Meny button, so it sits centred in the area below it. */
@media (max-width: 63.99rem) {
	.vg-header { padding-top: 3.5rem; }
	.vg-header__bar { min-height: 5rem; }
	.vg-header .wp-block-site-logo img { width: 15rem !important; }
}
