/* Offentlig arrangørforside – Nasjonal 15m Jaktfeltcup */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, "Segoe UI", Roboto, sans-serif;
    background: var(--bg, #f4f1ec);
    color: var(--ink, #1a1a18);
    line-height: 1.55;
    font-size: 1rem;
}

img:not(.brand-logo) { max-width: 100%; height: auto; }

a { color: var(--link, var(--accent)); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 2px solid var(--accent-dark, var(--accent));
    outline-offset: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap, 70rem);
    margin-inline: auto;
    padding-inline: var(--wrap-pad, 1.25rem);
}

main { flex: 1; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.5rem 1.15rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    gap: 0.35rem;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* --- Landing sections --- */
.org-hero,
.org-section {
    scroll-margin-top: 5.25rem;
}
.org-hero {
    background:
        linear-gradient(180deg, rgba(33, 37, 41, 0.04), transparent 40%),
        var(--bg);
    padding: 3.25rem 0 2.75rem;
    border-bottom: 1px solid var(--line);
}
.org-hero-inner {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
    max-width: 42rem;
    margin: 0 auto;
}
.org-hero-logo {
    display: block;
    max-height: 220px;
    max-width: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.15rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}
.org-kicker {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.org-hero h1 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.org-lead {
    margin: 0;
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 36rem;
}
.org-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}
.org-hero-note {
    margin: 1.1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    max-width: 28rem;
    cursor: default;
}

.org-section {
    padding: 3.5rem 0;
}
.org-section + .org-section { border-top: 1px solid var(--line); }
.org-section--tint { background: #fff; }
.org-section--cta {
    background: var(--header);
    color: var(--header-text);
    border-top: 3px solid var(--accent);
}
.org-section--cta h2 { color: #fff; }

.org-contact-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 1rem;
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
}
.org-contact-email {
    font-weight: 650;
    font-size: 1.15rem;
    color: var(--accent);
    text-decoration: none;
}
.org-contact-email:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.org-section h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    max-width: 36rem;
}
.org-section > .wrap > p,
.org-prose {
    max-width: 40rem;
    margin: 0 0 1rem;
    color: var(--ink);
}
.org-section > .wrap > p.muted,
.org-prose.muted { color: var(--muted); }
.org-section--cta > .wrap > p,
.org-section--cta > .wrap > p.muted,
.org-section--cta .org-follow {
    color: rgba(244, 241, 236, 0.88);
}
.org-section--cta a,
.org-section--cta a:visited {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
.org-section--cta a:hover {
    color: var(--accent-light);
}

.org-flow,
.org-split,
.org-cards,
.org-topics {
    display: grid;
    gap: 0.85rem;
    margin: 1.5rem 0 0;
}
.org-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}
.org-flow-step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.05rem;
    box-shadow: 0 1px 2px rgba(26, 26, 24, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}
.org-flow-step strong { font-size: 0.98rem; }
.org-flow-arrow {
    display: none;
}

.org-cards {
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}
.org-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 2px rgba(26, 26, 24, 0.05);
}
.org-card h3,
.org-step h3,
.org-topic h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}
.org-card p,
.org-step p,
.org-topic p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.org-card-num,
.org-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.org-steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    counter-reset: org-step;
}
.org-step {
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    gap: 0.85rem 1rem;
    padding: 0 0 1.35rem;
    position: relative;
}
.org-step:last-child { padding-bottom: 0; }
.org-step::before {
    content: counter(org-step);
    counter-increment: org-step;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.org-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.02rem;
    top: 2.15rem;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.org-step h3 { margin-top: 0.15rem; }

.org-split {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.35rem;
}
.org-split-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.35rem 1.4rem;
    text-align: center;
}
.org-split-card .org-pct {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1.1;
}
.org-split-card p { margin: 0.35rem 0 0; color: var(--muted); }

.org-table-wrap {
    overflow-x: auto;
    margin: 1.35rem 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}
.org-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 32rem;
    font-size: 0.95rem;
}
.org-table caption {
    text-align: left;
    padding: 0.85rem 1rem 0.35rem;
    font-weight: 700;
}
.org-table th,
.org-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.org-table thead th {
    background: #faf8f5;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.org-table tbody th { font-weight: 600; }
.org-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.org-table tbody tr:last-child th,
.org-table tbody tr:last-child td { border-bottom: 0; }

.org-callout {
    margin: 1.25rem 0 0;
    padding: 0.95rem 1.1rem;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    max-width: 42rem;
}
.org-callout p { margin: 0; }
.org-follow { margin-top: 1.15rem; }

.org-round-path {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 22rem;
}
.org-round-path li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 700;
}
.org-round-path li + li { margin-top: 1.35rem; }
.org-round-path li + li::before {
    content: '↓';
    position: absolute;
    left: 50%;
    top: -1.2rem;
    transform: translateX(-50%);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}
.org-round-path .org-round-result {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.org-become {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    counter-reset: become;
}
.org-become li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.15rem 1.15rem;
    counter-increment: become;
}
.org-become li::before {
    content: counter(become);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}
.org-become strong { display: block; font-size: 0.98rem; line-height: 1.35; }

.org-highlight {
    margin: 1.35rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--accent);
    border-radius: 10px;
    max-width: 40rem;
    background: #fff;
}
.org-highlight p { margin: 0; font-weight: 700; }

.org-topics {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.org-topic {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.15rem;
}

.org-faq {
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.55rem;
    max-width: 46rem;
}
.org-faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.15rem 0;
}
.org-faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 0.85rem 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.org-faq summary::-webkit-details-marker { display: none; }
.org-faq summary::after {
    content: '+';
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--accent);
    line-height: 1;
}
.org-faq details[open] summary::after { content: '–'; }
.org-faq summary:hover { color: var(--accent); }
.org-faq summary:focus-visible {
    outline: 2px solid var(--accent-dark, var(--accent));
    outline-offset: -2px;
    border-radius: 10px;
}
.org-faq details > p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: var(--muted);
    max-width: 40rem;
}

.org-section--course {
    background:
        linear-gradient(180deg, rgba(120, 80, 50, 0.06), transparent 28%),
        #efe8df;
}
.org-section--course .org-kicker {
    margin: 0 0 0.45rem;
}
.org-course-facts {
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 32rem;
}
.org-course-facts li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.org-course-facts strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.15rem;
}
.org-course {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    align-items: stretch;
}
.org-hold {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.95rem 0.9rem 1rem;
    box-shadow: 0 1px 2px rgba(26, 26, 24, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}
.org-hold--tb {
    border-color: #b42318;
    box-shadow: 0 0 0 1px #b42318, 0 1px 2px rgba(26, 26, 24, 0.05);
}
.org-hold-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.org-hold-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}
.org-hold--tb .org-hold-nr {
    background: #b42318;
}
.org-hold-head h3 {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.org-hold-badge {
    margin: 0 auto;
    align-self: center;
    background: #b42318;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
    max-width: 100%;
}
.org-hold-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.25rem;
    padding: 0.15rem 0.15rem 0.35rem;
}
.org-hold-figure img {
    display: block;
    width: auto;
    height: 5.75rem;
    max-width: 100%;
    object-fit: contain;
}
.org-hold-pos {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}
.org-hold-pos div {
    min-width: 0;
}
.org-hold-pos dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.org-hold-pos dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.25;
}
.org-pos-icon {
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    color: var(--accent);
}
.org-hold--tb .org-pos-icon {
    color: #b42318;
}
.org-hold-shots {
    margin: auto 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}
.org-course-order {
    max-width: 42rem;
}
.org-course-order a {
    font-weight: 700;
}
.org-section--course > .wrap > .org-course-docs {
    margin: 1rem 0 0;
    max-width: 42rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.org-section--course > .wrap > .org-course-docs a {
    font-weight: 700;
}
.org-section--course > .wrap > .org-course-slogan {
    margin: 1.25rem 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 40rem;
}

.org-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}
.org-section--cta .btn-primary {
    background: #fff;
    color: var(--header);
    border-color: #fff;
}
.org-section--cta .btn-primary:hover {
    background: var(--accent-soft);
    color: var(--header);
}
.org-section--cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.org-section--cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-footer {
    background: #1a1c1a;
    color: #f4f1ec;
    padding: 1.75rem 0;
    font-size: 0.92rem;
}
.site-footer p {
    margin: 0 0 0.45rem;
    color: inherit;
}
.site-footer strong {
    color: inherit;
}
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a,
.site-footer a:visited {
    color: #fff;
}
.site-footer a:hover {
    color: var(--accent-light, #b48c64);
}
.site-footer .footer-contact {
    color: #d7d2ca;
    max-width: 40rem;
}
.site-footer .footer-contact a,
.site-footer .footer-contact a:visited {
    color: #fff;
}
.site-footer .footer-contact a:hover {
    color: var(--accent-light, #b48c64);
}

@media (max-width: 64rem) {
    .org-course { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
    .org-flow,
    .org-become { grid-template-columns: 1fr 1fr; }
    .org-split { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
    .wrap { padding-inline: 1rem; }
    .org-hero { padding: 2.25rem 0 2rem; }
    .org-section { padding: 2.35rem 0; }
    .org-hero-logo { max-height: 140px; max-width: 200px; }
    .org-flow,
    .org-become,
    .org-course-facts { grid-template-columns: 1fr; }
    .org-course { grid-template-columns: 1fr 1fr; }
    .org-hero-actions,
    .org-actions { flex-direction: column; align-items: stretch; }
    .org-hero-actions .btn,
    .org-actions .btn { width: 100%; }
}

@media (max-width: 28rem) {
    .org-course,
    .org-course-facts { grid-template-columns: 1fr; }
}
