@font-face {
    font-family:Inter;
    src:url('fonts/Inter.woff2') format('woff2');
    font-weight:100 900;
    font-display:swap
}

* {
    box-sizing:border-box
}

:root {
    --navy:#092c49;
    --orange:#ed8a17;
    --ink:#18344b;
    --muted:#73808d;
    --line:#e4e9ed;
    --paper:#f5f7f9;
    --green:#278162
}

body {
    margin:0;
    font-family:Inter,Arial,sans-serif;
    background:var(--paper);
    color:var(--ink);
    font-size:14px;
    line-height:1.6
}

a {
    color:inherit;
    text-decoration:none
}

button,input,textarea,select {
    font:inherit
}

button,a,input,textarea,select {
    -webkit-tap-highlight-color:transparent
}

button,a {
    touch-action:manipulation
}

button {
    cursor:pointer
}

button:disabled {
    opacity:.45;
    cursor:default
}

button:focus-visible,a:focus-visible,summary:focus-visible {
    outline:3px solid #eea444;
    outline-offset:4px
}

input:focus,textarea:focus,select:focus {
    outline:2px solid #eda448;
    outline-offset:1px;
    border-color:#eda448
}

h1,h2,h3,p {
    margin:0
}

h1 {
    font-size:32px;
    line-height:1.25;
    letter-spacing:-1px;
    font-weight:750
}

h2 {
    font-size:21px;
    letter-spacing:-.55px
}

h3 {
    font-size:18px;
    letter-spacing:-.4px
}

.muted {
    color:var(--muted)
}

.eyebrow {
    font-size:10px;
    font-weight:750;
    letter-spacing:2px;
    color:var(--muted);
    display:block;
    margin-bottom:10px
}

.site-header {
    height:88px;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(5vw,calc((100vw - 1280px)/2));
    gap:24px
}

.brand {
    display:flex;
    align-items:center;
    gap:13px;
    font-size:13px;
    font-weight:800;
    letter-spacing:1px;
    line-height:1.5
}

.brand img {
    object-fit:contain
}

.brand small {
    display:block;
    font-size:10px;
    font-weight:550;
    letter-spacing:1.6px;
    color:#6a7986
}

.site-header nav {
    display:flex;
    gap:30px;
    height:100%;
    align-items:center;
    font-size:13px
}

.site-header nav>a {
    display:flex;
    align-items:center;
    height:100%;
    border-bottom:3px solid transparent;
    padding-top:3px;
    color:var(--muted)
}

.site-header nav>a.active {
    border-color:var(--orange);
    color:var(--navy);
    font-weight:650
}

.nav-logout {
    border:0;
    background:transparent;
    color:var(--muted);
    padding:12px 0
}

.container {
    max-width:1280px;
    width:90%;
    margin:0 auto;
    min-height:calc(100vh - 200px)
}

.site-footer {
    max-width:1280px;
    width:90%;
    margin:55px auto 0;
    padding:24px 0;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font-size:11px
}

.welcome {
    padding:42px 0 29px;
    display:flex;
    justify-content:space-between;
    align-items:center
}

.welcome h1 {
    margin-bottom:10px
}

.hello-dot {
    display:inline-block;
    width:9px;
    height:9px;
    background:var(--orange);
    border-radius:50%;
    margin-left:4px
}

.today {
    text-align:right
}

.today span {
    display:block;
    color:var(--muted);
    font-size:12px
}

.today strong {
    font-size:19px;
    letter-spacing:-.5px
}

.create-banner {
    background:linear-gradient(115deg,#092c49,#123d5d);
    color:white;
    border-radius:16px;
    padding:35px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    overflow:hidden;
    position:relative
}

.create-banner .eyebrow {
    color:#e6a94e
}

.create-banner h2 {
    font-size:27px;
    font-weight:650;
    letter-spacing:-.7px;
    margin-bottom:8px
}

.create-banner p {
    color:#b9ccd9;
    font-size:13px;
    margin-bottom:23px
}

.button {
    min-height:46px;
    border-radius:8px;
    padding:12px 18px;
    border:1px solid transparent;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-size:13px;
    font-weight:650;
    line-height:1.4;
    transition:background .15s,box-shadow .15s
}

.primary {
    background:var(--navy);
    color:#fff
}

.primary:hover {
    background:#15476d
}

.orange {
    background:#f5a234;
    color:#172f44;
    box-shadow:0 4px 14px #0001
}

.orange:hover {
    background:#ffb651
}

.secondary {
    background:white;
    border-color:#dce3e9;
    color:var(--ink)
}

.secondary:hover {
    background:#f1f5f8
}

.full {
    width:100%
}

.banner-art {
    width:225px;
    padding:22px;
    background:#ffffff0a;
    border:1px solid #ffffff20;
    transform:rotate(-7deg);
    border-radius:12px;
    margin-right:30px;
    box-shadow:15px 15px #ffffff04
}

.banner-art span {
    font-size:10px;
    letter-spacing:2px;
    color:#fff9
}

.banner-art i {
    display:block;
    height:7px;
    background:#ffffff18;
    margin:16px 0;
    border-radius:4px
}

.banner-art i:nth-child(3) {
    width:80%
}

.banner-art b {
    font-size:13px;
    font-weight:500;
    color:#efaa4c
}

.history {
    margin-top:36px
}

.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:18px
}

.section-heading .eyebrow {
    margin-bottom:4px
}

.count {
    font-size:11px;
    background:#e9eef2;
    padding:4px 9px;
    border-radius:20px;
    vertical-align:middle;
    margin-left:7px
}

.filters {
    display:flex;
    gap:12px;
    align-items:end;
    margin-bottom:22px
}

.filters label {
    margin:0;
    max-width:220px
}

.compact-label {
    font-size:11px!important;
    color:var(--muted)!important
}

.filters .button {
    min-height:44px
}

.text-link {
    background:none;
    border:0;
    color:#956017;
    font-size:12px;
    font-weight:600;
    padding:9px 0;
    display:inline-block
}

.program-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px
}

.card {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 3px 8px #112c4003
}

.program-card {
    padding:23px
}

.card-top {
    display:flex;
    justify-content:space-between;
    align-items:start;
    margin-bottom:20px
}

.date-tile {
    border-radius:9px;
    background:#f1f5f8;
    padding:8px 13px;
    text-align:center;
    min-width:63px
}

.date-tile strong {
    display:block;
    font-size:26px;
    line-height:1.25;
    letter-spacing:-1px
}

.date-tile span {
    font-size:9px;
    color:var(--muted)
}

.badge {
    display:inline-block;
    background:#fff5e5;
    color:#a36b1c;
    font-size:10px;
    letter-spacing:.2px;
    font-weight:650;
    padding:4px 9px;
    border-radius:5px;
    white-space:nowrap
}

.badge.ready {
    background:#eaf5ef;
    color:#2e7b5c
}

.program-card h3 {
    margin-bottom:4px
}

.program-card p {
    font-size:12px
}

.card-actions {
    border-top:1px solid #edf0f2;
    padding-top:17px;
    margin-top:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px
}

.card-actions .button {
    font-size:12px;
    min-height:42px;
    padding:10px 14px
}

.card-actions form {
    display:flex;
    gap:3px
}

.icon-button {
    min-width:44px;
    min-height:44px;
    border:1px solid #e3e9ef;
    border-radius:7px;
    color:#718293;
    background:white;
    font-size:23px;
    line-height:1
}

.icon-button:hover {
    background:#f3f6f8
}

.icon-button.danger {
    color:#ac6b6b
}

.empty-state {
    text-align:center;
    padding:50px 20px;
    background:#fff;
    border:1px dashed #d6dee5;
    border-radius:12px
}

.empty-icon {
    font-size:35px;
    color:#b8c6d0;
    margin-bottom:10px
}

.empty-state p {
    margin-top:8px;
    font-size:13px
}

.pagination {
    display:flex;
    gap:20px;
    justify-content:center;
    align-items:center;
    margin-top:25px;
    font-size:12px
}

.notice,.error {
    padding:14px 17px;
    border-radius:8px;
    margin:16px 0;
    background:#eaf5ef;
    color:#286e52;
    font-size:13px;
    overflow-wrap:anywhere
}

.error {
    background:#fff0ec;
    color:#a63825
}

.help {
    font-size:11px;
    color:var(--muted);
    margin:12px 0;
    line-height:1.7
}

label {
    display:block;
    font-size:12px;
    font-weight:600;
    margin-bottom:18px;
    color:#39516a
}

input,textarea,select {
    display:block;
    width:100%;
    min-width:0;
    border:1px solid #dce3e9;
    border-radius:7px;
    min-height:46px;
    padding:11px 12px;
    background:#fff;
    color:var(--ink);
    margin-top:7px;
    font-size:14px
}

input::placeholder,textarea::placeholder {
    color:#9ca7b0;
    font-weight:400
}

textarea {
    resize:vertical;
    min-height:78px;
    line-height:1.5
}

.two-columns {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px
}

.login-layout {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    max-width:1000px;
    min-height:70vh;
    margin:20px auto;
    gap:100px
}

.login-story h1 {
    font-size:43px;
    line-height:1.3;
    margin:18px 0;
    letter-spacing:-1.8px
}

.login-story .eyebrow {
    color:#b87c2b
}

.login-story p {
    font-size:15px;
    color:var(--muted);
    line-height:1.9
}

.motto {
    margin-top:55px;
    font-size:21px;
    font-weight:850;
    letter-spacing:-.6px
}

.motto em {
    color:var(--orange);
    display:block;
    font-size:34px;
    line-height:1;
    font-weight:750;
    letter-spacing:-1.5px
}

.login-card {
    padding:37px
}

.login-card h2 {
    font-size:27px
}

.login-card>.muted {
    margin:8px 0 26px;
    font-size:12px
}

.login-card .help {
    text-align:center;
    margin-top:20px
}

.editor-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:27px 0
}

.back-link {
    font-size:11px;
    color:var(--muted);
    display:inline-block;
    padding:8px 0;
    margin-bottom:9px
}

.editor-heading h1 {
    font-size:29px
}

.editor-heading p {
    font-size:12px;
    margin-top:7px
}

.save-info {
    font-size:11px;
    text-align:right;
    color:var(--green)
}

.save-info>span {
    display:block
}

.editor-layout {
    display:grid;
    grid-template-columns:minmax(300px, .85fr) minmax(0,1.3fr);
    gap:30px;
    align-items:start
}

.edit-panel {
    padding-bottom:20px
}

.date-card {
    padding:22px
}

.step-title {
    display:flex;
    gap:11px;
    align-items:center
}

.step-title>span {
    font-size:10px;
    color:#b07b35;
    background:#fff4e4;
    border-radius:5px;
    padding:5px 7px;
    font-weight:700
}

.step-title h2 {
    font-size:15px;
    letter-spacing:-.3px
}

.date-card .step-title {
    margin-bottom:21px
}

.date-card label {
    margin:0
}

.date-card .help {
    margin-bottom:0
}

.rows-heading {
    margin-top:28px
}

.rows-heading>.muted {
    font-size:11px
}

.row-card {
    padding:19px;
    margin-bottom:12px
}

.row-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px
}

.row-toolbar strong {
    font-size:12px;
    font-weight:650
}

.row-controls {
    display:flex;
    gap:5px
}

.row-controls .icon-button {
    font-size:17px;
    min-height:38px;
    min-width:40px
}

.row-card label {
    margin-bottom:13px
}

.row-card label:last-child {
    margin-bottom:0
}

.row-card .two-columns {
    grid-template-columns:145px minmax(0,1fr);
    gap:12px
}

.time-field { border:0; padding:0; margin:0 0 13px; min-width:0; }
.time-field legend { padding:0; font-size:12px; font-weight:600; color:#39516a; }
.time-selects { display:flex; align-items:center; gap:4px; margin-top:7px; }
.time-selects select { width:65px; flex:1; padding:11px 6px; margin:0; font-variant-numeric:tabular-nums; }
.time-selects span { font-weight:700; }

.row-card textarea {
    min-height:65px;
    font-size:13px
}

.row-card input {
    font-size:13px
}

.add-row {
    width:100%;
    background:#fff;
    border:1px dashed #becbd5;
    color:#385971;
    min-height:48px
}

.add-row:hover {
    background:#edf4f9
}

.preview-panel {
    position:sticky;
    top:24px;
    min-width:0
}

.preview-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:5px 0 18px
}

.live-indicator {
    font-size:10px;
    color:var(--green);
    background:#e9f2ec;
    padding:4px 9px;
    border-radius:20px
}

.live-indicator:before {
    content:'';
    display:inline-block;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#3a916a;
    margin-right:5px
}

.preview-surface {
    border:1px solid #dfe6ec;
    background:#eaf0f4;
    border-radius:12px;
    padding:20px;
    overflow:hidden
}

.preview-frame {
    position:relative;
    overflow:hidden;
    box-shadow:0 4px 16px #0a2c4914;
    background:#fff;
    margin-bottom:15px
}

.preview-frame:last-child {
    margin-bottom:0
}

.preview-frame .program-sheet {
    transform-origin:top left
}

.preview-help {
    text-align:center
}

.fit-option { display:flex; align-items:center; gap:12px; padding:13px 15px; margin:0 0 15px; background:#fff; border:1px solid var(--line); border-radius:9px; cursor:pointer; }
.fit-option input { width:20px; height:20px; min-height:20px; margin:0; flex-shrink:0; accent-color:var(--navy); }
.fit-option small { display:block; margin-top:3px; font-size:11px; font-weight:400; color:var(--muted); }

.export-actions {
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:9px;
    margin-top:20px
}

.export-actions .button {
    padding:13px 8px;
    font-size:12px
}

.download-files {
    padding:15px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    display:flex;
    gap:10px;
    flex-wrap:wrap
}

.download-files a {
    color:#966019;
    text-decoration:underline;
    min-height:44px;
    display:flex;
    align-items:center
}

.mobile-tabs {
    display:none
}

.user-card {
    padding:20px;
    margin-bottom:12px
}

.user-card summary {
    cursor:pointer;
    font-weight:650;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:44px
}

.user-card summary:after {
    content:'＋';
    color:var(--muted)
}

.user-card[open] summary:after {
    content:'−'
}

.user-card summary small {
    display:block;
    font-weight:400;
    font-size:11px;
    color:var(--muted);
    overflow-wrap:anywhere
}

.user-form {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid var(--line)
}

.user-form label {
    margin:0
}

.user-form small {
    font-weight:400;
    color:var(--muted)
}

.checkbox {
    display:flex;
    align-items:center;
    gap:10px
}

.checkbox input {
    width:18px;
    min-height:18px;
    margin:0;
    accent-color:var(--navy)
}

.skip-link {
    position:fixed;
    top:-100px;
    left:10px;
    background:white;
    padding:12px;
    z-index:100
}

.skip-link:focus {
    top:10px
}

[hidden] {
    display:none!important
}

@media(min-width:1500px) {
    .container {
        max-width:1280px
    }
    .editor-layout {
        grid-template-columns:440px 1fr
    }
}

@media(max-width:1000px) {
    .program-grid {
        grid-template-columns:repeat(2,1fr)
    }
    .banner-art {
        width:180px;
        margin-right:0
    }
    .create-banner {
        padding:30px
    }
    .editor-layout {
        gap:20px;
        grid-template-columns:minmax(280px,.9fr) minmax(0,1fr)
    }
    .preview-surface {
        padding:12px
    }
    .login-layout {
        gap:40px
    }
    .login-story h1 {
        font-size:36px
    }
    .export-actions {
        grid-template-columns:1fr 1fr
    }
    .export-actions .primary {
        grid-column:1/-1
    }
}

@media(max-width:760px) {
    .site-header {
        height:76px;
        padding:0 5%;
        gap:10px
    }
    .brand {
        font-size:10px;
        gap:7px;
        letter-spacing:.6px
    }
    .brand img {
        width:32px;
        height:44px
    }
    .brand small {
        font-size:8px;
        letter-spacing:.6px
    }
    .site-header nav {
        gap:13px;
        font-size:10px
    }
    .nav-logout {
        font-size:10px
    }
    .container {
        width:90%
    }
    .welcome {
        padding:28px 0 23px
    }
    .welcome h1 {
        font-size:27px
    }
    .welcome p {
        font-size:12px;
        max-width:260px
    }
    .today {
        display:none
    }
    .create-banner {
        padding:25px 22px;
        border-radius:12px
    }
    .create-banner h2 {
        font-size:23px;
        max-width:270px;
        line-height:1.35
    }
    .create-banner p {
        font-size:12px;
        max-width:260px;
        margin-top:10px
    }
    .create-banner .button {
        font-size:11px;
        padding:13px 11px;
        gap:6px
    }
    .banner-art {
        display:none
    }
    .program-grid {
        gap:13px
    }
    .program-card {
        padding:18px
    }
    .history {
        margin-top:28px
    }
    .filters {
        flex-wrap:wrap;
        gap:10px
    }
    .filters label {
        flex:1;
        max-width:none;
        min-width:115px
    }
    .filters .button {
        padding:12px
    }
    .card-actions .button {
        padding:10px;
        font-size:11px
    }
    .site-footer {
        margin-top:35px;
        font-size:9px;
        gap:10px
    }
    .login-layout {
        display:flex;
        flex-direction:column;
        gap:25px;
        align-items:stretch;
        min-height:auto;
        margin:35px auto;
        max-width:420px
    }
    .login-story h1 {
        font-size:30px;
        letter-spacing:-1px;
        margin:0
    }
    .login-story>p,.login-story .motto {
        display:none
    }
    .login-story .eyebrow {
        font-size:9px
    }
    .login-card {
        padding:25px
    }
    .editor-heading {
        padding:18px 0;
        display:block
    }
    .editor-heading h1 {
        font-size:25px
    }
    .save-info {
        text-align:left;
        margin-top:13px;
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:10px
    }
    .save-info .text-link {
        padding:0
    }
    .back-link {
        margin-bottom:5px
    }
    .mobile-tabs {
        display:flex;
        background:#e8edf2;
        border-radius:9px;
        padding:4px;
        margin:5px 0 20px;
        gap:4px;
        position:sticky;
        top:0;
        z-index:5
    }
    .mobile-tabs button {
        flex:1;
        border:0;
        background:none;
        padding:13px 5px;
        font-size:11px;
        border-radius:6px;
        color:#657b8d;
        font-weight:600;
        min-height:44px
    }
    .mobile-tabs .selected {
        background:#fff;
        color:var(--navy);
        box-shadow:0 2px 5px #0001
    }
    .editor-layout {
        display:block
    }
    .preview-panel {
        display:none;
        position:static
    }
    .show-preview .preview-panel {
        display:block
    }
    .show-preview .edit-panel {
        display:none
    }
    .preview-surface {
        padding:10px
    }
    .export-actions {
        grid-template-columns:1fr 1fr
    }
    .export-actions .primary {
        grid-column:1/-1;
        min-height:50px
    }
    .date-card {
        padding:20px
    }
    .step-title h2 {
        font-size:15px
    }
    .preview-help {
        font-size:10px
    }
    .user-form {
        grid-template-columns:1fr
    }
    .user-card {
        padding:16px
    }
    .user-card summary {
        font-size:12px
    }
    .user-card .badge {
        font-size:9px
    }
    .user-card summary span:first-child {
        min-width:0
    }
}

@media(max-width:480px) {
    .program-grid {
        grid-template-columns:1fr
    }
    .program-card {
        padding:20px
    }
    .card-top {
        margin-bottom:14px
    }
    .program-card .card-actions {
        margin-top:16px;
        padding-top:14px
    }
    .program-card h3 {
        font-size:17px
    }
    .filters .text-link {
        font-size:11px
    }
    .two-columns {
        gap:10px
    }
    .eyebrow {
        font-size:9px
    }
    .section-heading h2 {
        font-size:20px
    }
    .today {
        display:none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important;
        transition:none!important
    }
}

/* Accessible off-screen link and touch-sized mobile inputs. */
.skip-link {
    top:0;
    width:1px;
    height:1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap
}

.skip-link:focus {
    top:10px;
    width:auto;
    height:auto;
    padding:12px;
    clip-path:none
}

@media(max-width:760px) {
    input,textarea,select,.row-card input,.row-card textarea {
        font-size:16px
    }
    .row-controls .icon-button {
        min-height:44px;
        min-width:44px
    }
}
