.sf27-page,
.sf27-home {
    --sf27-ink: #0b223a;
    --sf27-muted: #42566c;
    --sf27-blue: #114a7a;
    --sf27-gold: #ffcc26;
    --sf27-line: #d7e2ed;
    --sf27-white: #fff;
    color: var(--sf27-ink);
}

.sf27-page {
    margin: 0;
    background: #f6f8fb;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.55;
}

.sf27-page *, .sf27-page *::before, .sf27-page *::after { box-sizing: border-box; }
.sf27-page a { color: var(--sf27-blue); }
.sf27-page a:hover { text-decoration-thickness: .14em; }
.sf27-page :focus-visible, .sf27-home :focus-visible {
    outline: 3px solid #247bd2;
    outline-offset: 4px;
}
.sf27-page [hidden] { display: none; }
.sf27-wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }

.sf27-skip {
    position: absolute;
    z-index: 5;
    top: .5rem;
    left: .5rem;
    padding: .6rem 1rem;
    background: var(--sf27-white);
    transform: translateY(-160%);
}
.sf27-skip:focus { transform: none; }
.sf27-bar { background: var(--sf27-white); border-bottom: 1px solid var(--sf27-line); }
.sf27-bar .sf27-wrap, .sf27-footer .sf27-wrap {
    min-height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.sf27-bar a { text-decoration: none; color: var(--sf27-ink); }
.sf27-brand { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 850; }
.sf27-brand img { border-radius: .6rem; }
.sf27-back { font-size: .9rem; font-weight: 750; }

.sf27-hero, .sf27-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, .44fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.35rem, 5vw, 4rem);
    border-radius: 1.6rem;
    background-color: #0b2948;
    background-image: linear-gradient(90deg, #fff1 1px, transparent 1px),
        linear-gradient(#fff1 1px, transparent 1px),
        radial-gradient(ellipse at 95% 20%, #205b84, transparent 66%);
    background-size: 2.3rem 2.3rem, 2.3rem 2.3rem, auto;
    color: var(--sf27-white);
    box-shadow: 0 1.1rem 2.7rem #081b331a;
}
.sf27-hero { margin-block: clamp(1.25rem, 5vw, 3.5rem); }
.sf27-hero h1, .sf27-home h2 {
    margin: .15em 0 .27em;
    color: inherit;
    font-weight: 850;
    letter-spacing: -.058em;
    line-height: 1.02;
}
.sf27-hero h1 { font-size: clamp(2.75rem, 7.5vw, 5.9rem); }
.sf27-hero h1 span { display: block; color: var(--sf27-gold); }
.sf27-hero-copy > p:not(.sf27-kicker), .sf27-home-copy > p:not(.sf27-kicker) {
    max-width: 54ch;
    margin: 0 0 1.3rem;
    color: #e2edf7;
    line-height: 1.55;
}
.sf27-page .sf27-kicker, .sf27-home .sf27-kicker {
    margin: 0 0 .85rem;
    color: #e2edf7;
    font-size: .79rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sf27-kicker span { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--sf27-gold); margin-inline-end: .38em; vertical-align: .15em; }
.sf27-page .sf27-button, .sf27-home .sf27-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 2.8rem;
    padding: .55rem 1rem;
    background: var(--sf27-gold);
    border: 1px solid transparent;
    border-radius: .65rem;
    color: #152135;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}
.sf27-page .sf27-button:hover, .sf27-home .sf27-button:hover { background: #ffe27a; text-decoration: none; }
.sf27-year {
    overflow: hidden;
    display: grid;
    gap: .55rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #99b7d17a;
    border-top: .28rem solid var(--sf27-gold);
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #f6faff, #e6f0fa);
    color: var(--sf27-ink);
}
.sf27-year > span, .sf27-year time { font-size: .875rem; font-weight: 750; color: var(--sf27-blue); }
.sf27-year strong { font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 850; letter-spacing: -.065em; line-height: .95; font-variant-numeric: tabular-nums; }
.sf27-year .sf27-trial-length { font-size: clamp(2.45rem, 4.6vw, 3.75rem); line-height: 1.05; }

.sf27-section { margin-block: 3.25rem; scroll-margin-block: 1rem; }
.sf27-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.sf27-section h2, .sf27-watch h2 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 4vw, 2.45rem); letter-spacing: -.035em; line-height: 1.13; }
.sf27-section-head p { max-width: 68ch; margin: 0; color: var(--sf27-muted); }
.sf27-toggle {
    flex: none;
    padding: .65rem .9rem;
    border: 1px solid #7b9dbb;
    border-radius: .6rem;
    background: var(--sf27-white);
    color: var(--sf27-blue);
    font: inherit;
    font-size: .88rem;
    font-weight: 750;
    cursor: pointer;
}
.sf27-toggle[aria-pressed="true"] { background: var(--sf27-blue); color: var(--sf27-white); }
.sf27-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf27-event {
    padding: 1.2rem;
    border: 1px solid var(--sf27-line);
    border-radius: 1rem;
    background: var(--sf27-white);
    box-shadow: 0 .35rem .8rem #071b3308;
}
.sf27-event-past { background: #edf2f7; }
.sf27-event-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .6rem; font-variant-numeric: tabular-nums; }
.sf27-event-meta time { font-size: .8rem; font-weight: 800; color: var(--sf27-blue); }
.sf27-event-meta [data-sf27-count]:not(:empty) { border-radius: .4rem; background: #fff2bc; color: #5d4200; padding: .12rem .42rem; font-size: .73rem; font-weight: 800; }
.sf27-event-past .sf27-event-meta [data-sf27-count] { background: #dde5ed; color: var(--sf27-muted); }
.sf27-event h3 { margin: .55rem 0 .5rem; font-size: 1.16rem; line-height: 1.25; letter-spacing: -.02em; }
.sf27-event p { margin: 0 0 .75rem; color: var(--sf27-muted); font-size: .94rem; }
.sf27-event > a { display: block; width: fit-content; font-size: .82rem; font-weight: 750; text-underline-offset: .17em; }
.sf27-event > a + a { margin-top: .3rem; }
.sf27-rules dl { margin: .8rem 0 0; border: 1px solid var(--sf27-line); border-radius: 1rem; background: var(--sf27-white); }
.sf27-rules dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1rem; padding: 1rem 1.25rem; }
.sf27-rules dl > div + div { border-top: 1px solid var(--sf27-line); }
.sf27-rules dt { font-weight: 800; }
.sf27-rules dd { margin: 0; color: var(--sf27-muted); }
.sf27-watch { margin-block: 3rem; padding: 1.3rem; border-radius: 1rem; border: 1px solid #e0c978; background: #fffae9; }
.sf27-watch h2 { font-size: 1.45rem; }
.sf27-watch p { max-width: 88ch; margin: .55rem 0 0; }
.sf27-reviewed { color: var(--sf27-muted); font-size: .85rem; }
.sf27-footer { border-top: 1px solid var(--sf27-line); background: var(--sf27-white); font-weight: 750; font-size: .9rem; }

.sf27-home { padding-block: 1rem !important; }
.sf27-home-card { padding: clamp(1.2rem, 4vw, 2.4rem); }
.sf27-home h2 { font-size: clamp(1.95rem, 5vw, 3.6rem); }
.sf27-home-year strong { font-size: clamp(2.45rem, 5vw, 4rem); }
.sf27-autumn .sf27-home-card { background-color: #182440; background-image: linear-gradient(90deg, #fff1 1px, transparent 1px), linear-gradient(#fff1 1px, transparent 1px), radial-gradient(ellipse at 95% 20%, #7b3b20, transparent 67%); }
.sf27-autumn .sf27-home-year { background: linear-gradient(145deg, #fffcf3, #f8ead9); }
.sf27-holiday .sf27-home-card { box-shadow: 0 1rem 2.5rem #081b3330; }
.sf27-holiday .sf27-home-year { border-top-width: .44rem; }
.lm-site-nav > .sf27-nav-link { color: #114a7a; }

@media (max-width: 57rem) {
    .sf27-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
    .sf27-wrap { width: calc(100% - 2rem); }
    .sf27-hero, .sf27-home-card, .sf27-grid, .sf27-rules dl > div { grid-template-columns: 1fr; }
    .sf27-home-card, .sf27-rules dl > div { gap: .6rem; }
    .sf27-section-head { align-items: start; flex-direction: column; }
    .sf27-home .sf27-home-year { margin-top: .55rem; }
    .sf27-home-year { grid-template-columns: 1fr auto; align-items: center; }
    .sf27-home-year > strong { grid-column: 2; grid-row: 1 / span 2; }
}
