:root {
    --ink: #12231c;
    --muted: #4a5d54;
    --paper: #eef3f0;
    --paper-2: #e3ece6;
    --line: #c5d2cb;
    --brand: #0f5c45;
    --brand-deep: #0a3d2e;
    --accent: #1d6b8a;
    --ok: #1f7a4c;
    --warn: #8a6a12;
    --danger: #9b2c2c;
    --shadow: 0 18px 40px rgba(18, 35, 28, 0.08);
    --radius: 14px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    min-height: 100vh;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: .5rem 1rem;
    z-index: 1000;
}
.skip-link:focus { left: 0; }

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(15, 92, 69, 0.16), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(29, 107, 138, 0.12), transparent 55%),
        linear-gradient(180deg, #f2f7f4 0%, #e8f0eb 45%, #eef3f0 100%);
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(243, 239, 230, 0.86);
    border-bottom: 1px solid rgba(207, 216, 210, 0.8);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
}
.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 16px rgba(15, 92, 69, 0.18);
}
.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #f7f4ee;
    font-family: var(--font-display);
    font-weight: 700;
}
.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand__text strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.brand__text small {
    color: var(--muted);
    font-size: .78rem;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    align-items: center;
}
.site-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav a.is-active,
.site-nav a:hover {
    border-bottom-color: var(--brand);
    text-decoration: none;
}
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .45rem .9rem;
    font: inherit;
}

.hero {
    padding: 3.5rem 0 2.2rem;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: end;
}
.eyebrow {
    display: inline-block;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .75rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    max-width: 12ch;
}
.hero p.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 38rem;
    margin: 0 0 1.4rem;
}
.hero-panel {
    background: linear-gradient(160deg, #0f5c45, #0a3d2e);
    color: #f4f7f5;
    border-radius: 22px;
    padding: 1.5rem;
    min-height: 220px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.hero-panel h2 {
    font-family: var(--font-display);
    margin: 0 0 .6rem;
    font-size: 1.5rem;
}
.hero-panel p { margin: 0; opacity: .92; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: none;
    border-radius: 999px;
    padding: .75rem 1.2rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--brand);
    color: #fff;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brand); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #155370; }
.btn--small { padding: .45rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }

.section {
    padding: 1.5rem 0 3rem;
}
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}
.section-head p {
    margin: .35rem 0 0;
    color: var(--muted);
}

.channel-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: 1.5rem 0 2rem;
}
.channel {
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem .85rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.channel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.channel strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
}
.channel span {
    color: var(--muted);
    font-size: .82rem;
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem;
    box-shadow: var(--shadow);
    align-items: center;
}
.search-bar input {
    border: 0;
    outline: 0;
    padding: .8rem 1rem;
    font: inherit;
    background: transparent;
    width: 100%;
}
.suggest-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.suggest-wrap--grow { min-width: 0; }
.suggest-wrap input { width: 100%; }
.suggest-box {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}
.suggest-item {
    width: 100%;
    display: grid;
    gap: .15rem;
    text-align: left;
    border: 0;
    background: #fff;
    padding: .75rem .9rem;
    font: inherit;
    cursor: pointer;
    border-bottom: 1px solid #eef2ef;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover,
.suggest-item.is-active {
    background: #f3f8f5;
}
.suggest-item__title {
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
}
.suggest-item__meta {
    color: var(--muted);
    font-size: .8rem;
}

.job-list {
    display: grid;
    gap: .8rem;
}
.job-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 1rem 1.25rem;
    align-items: center;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    transition: border-color .2s ease, transform .2s ease;
}
.job-row:hover {
    border-color: #9bb5a8;
    transform: translateY(-1px);
}
.job-row.is-expired { opacity: .72; }
.job-row__main { min-width: 0; }
.job-row__cat {
    margin: 0 0 .35rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.job-row__title {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.job-row__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-row__title a:hover { color: var(--brand); }
.job-row__more {
    margin: .28rem 0 0;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
}
.job-row__meta {
    margin: .55rem 0 0;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .55rem;
    font-size: .88rem;
    line-height: 1.4;
}
.job-row__dept {
    color: var(--muted);
}
.job-row__loc {
    color: var(--ink);
    font-weight: 500;
}
.job-row__loc::before {
    content: "·";
    margin-right: .55rem;
    color: #9aa8a0;
    font-weight: 400;
}
.job-row__date {
    margin: 0 0 .55rem;
    color: var(--muted);
    font-size: .78rem;
    text-align: right;
    white-space: nowrap;
}
.job-row__date-label {
    display: block;
    margin-bottom: .15rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .68rem;
    font-weight: 600;
}
.job-row__date strong {
    display: block;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.job-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: .45rem;
    min-width: 140px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .78rem;
    font-weight: 600;
    background: #dceee4;
    color: var(--ok);
}
.badge--muted {
    background: #ece7dc;
    color: var(--muted);
}
.badge--warn {
    background: #f4e6c5;
    color: var(--warn);
}

.page-hero {
    padding: 2.4rem 0 1rem;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 .7rem;
    max-width: 18ch;
}
.page-hero--detail h1,
.page-hero h1.job-detail-title {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    max-width: 100%;
    width: 100%;
    text-wrap: wrap;
}
.page-hero p {
    max-width: 42rem;
    color: var(--muted);
    margin: 0;
}
.page-hero--detail p,
.page-hero p.job-detail-sub {
    max-width: 100%;
    width: 100%;
    font-size: .95rem;
    line-height: 1.5;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 1.2rem;
    padding-bottom: 3rem;
}
.panel {
    background: rgba(255,255,255,.8);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem;
}
.panel h2, .panel h3 {
    font-family: var(--font-display);
    margin-top: 0;
}
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}
.meta-list span { color: var(--muted); }
.notice-box {
    white-space: pre-wrap;
    background: #f7faf7;
    border-left: 3px solid var(--brand);
    padding: .9rem 1rem;
    border-radius: 0 12px 12px 0;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.55;
    text-transform: none;
}
.source-line {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--muted);
}
.apply-url-box {
    margin: .7rem 0 0;
    padding: .65rem .75rem;
    background: #f3f8f5;
    border: 1px dashed var(--line);
    border-radius: 10px;
    word-break: break-all;
    font-size: .86rem;
}
.apply-url-box a { color: var(--brand-deep); }

.content-block {
    max-width: 46rem;
    padding-bottom: 3rem;
}
.content-block h2 {
    font-family: var(--font-display);
    margin-top: 2rem;
}
.content-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0 1rem;
}
.blog-list {
    display: grid;
    gap: 1rem;
    padding-bottom: 3rem;
}
.blog-card {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
}
.blog-card__meta {
    margin: 0 0 .45rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}
.blog-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.35;
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.blog-card__title a:hover { color: var(--brand); }
.blog-card__excerpt {
    margin: .55rem 0 .75rem;
    color: var(--muted);
    line-height: 1.55;
}
.blog-card__link {
    font-weight: 600;
    color: var(--brand-deep);
}
.blog-article h2 {
    font-size: 1.35rem;
}
.blog-article p,
.blog-article li {
    line-height: 1.65;
}
.content-block ol, .content-block ul {
    padding-left: 1.2rem;
}
.faq details {
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: .6rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: .9rem;
    max-width: 32rem;
}
.form-grid label {
    display: grid;
    gap: .35rem;
    font-weight: 500;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .7rem .85rem;
    font: inherit;
    background: #fff;
}

.flash {
    padding: .8rem 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-weight: 500;
}
.flash--success { background: #dceee4; color: var(--ok); }
.flash--error { background: #f6dede; color: var(--danger); }
.flash--info { background: #e7eef6; color: #1f4e79; }

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1.2rem;
}
.pager__link {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.pager__link.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #e9efe9;
    padding: 2.5rem 0 1.2rem;
    margin-top: 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 0 .5rem;
}
.footer-note { color: var(--muted); margin: 0; }
.footer-heading {
    font-weight: 700;
    margin: 0 0 .6rem;
}
.footer-grid a {
    display: block;
    margin-bottom: .35rem;
    color: var(--ink);
}
.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.admin-wrap {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: .75rem;
    text-align: left;
    vertical-align: top;
    font-size: .92rem;
}
.admin-table th { background: #eef4f0; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    margin: 1rem 0 1.5rem;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

@media (max-width: 900px) {
    .hero__grid,
    .detail-layout,
    .footer-grid,
    .channel-strip,
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .channel-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 74px;
        background: #f7f4ee;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: .8rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .hero__grid,
    .detail-layout,
    .footer-grid,
    .job-row,
    .channel-strip,
    .stat-grid,
    .search-bar {
        grid-template-columns: 1fr;
    }
    .job-row__side {
        align-items: flex-start;
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .job-row__date { text-align: left; margin-bottom: 0; }
    .job-row__loc::before { content: none; margin: 0; }
    .job-row__loc {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
    }
    .job-row__loc::before {
        content: "·";
        margin-right: 0;
    }
    .hero h1 { max-width: none; }
    .page-hero--detail h1,
    .page-hero h1.job-detail-title {
        max-width: 100%;
        font-size: 1.15rem;
    }
}
