@charset "UTF-8";

:root {
  --ink: #17212f;
  --muted: #5d6b7c;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #edf3ff;
  --line: #e2e8f0;
  --surface: #fff;
  --paper: #fff;
  --bg: #f6f8fb;
  --amber: #a85a0a;
  --amber-soft: #fff5e5;
  --violet: #7041bd;
  --violet-soft: #f4effc;
  --green: var(--primary);
  --green-dark: var(--primary-dark);
  --green-soft: var(--primary-soft);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* Shared foundation */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); letter-spacing: -.025em; }
button, input, select { font: inherit; letter-spacing: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #2563eb; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, select { touch-action: manipulation; }
[hidden] { display: none !important; }
.wrap, .header-inner, .footer-inner { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 150; padding: 12px 20px; border-radius: 8px; background: var(--primary); color: #fff; }
.skip-link:focus { top: 12px; }
.demo-banner { min-height: 29px; padding: 4px 16px; display: flex; justify-content: center; gap: 9px; background: #fff6e7; color: #7d531c; font-size: 12px; }
.demo-banner strong { font-weight: 650; }

/* Header and navigation */
.site-header { height: 72px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.brand img { width: 29px; height: 29px; }
.desktop-nav { display: flex; align-items: center; gap: 32px; height: 100%; font-size: 15px; font-weight: 600; color: #526172; }
.desktop-nav > a { position: relative; height: 100%; display: flex; align-items: center; gap: 7px; }
.desktop-nav > a.active { color: var(--primary); }
.desktop-nav > a.active::after { position: absolute; content: ""; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary); }
.saved-count { min-width: 21px; padding: 0 5px; border-radius: 5px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; line-height: 21px; text-align: center; }
.header-about { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: 14px; color: var(--muted); }
.mobile-nav { display: none; }

/* Compact discovery header */
.board-main { padding-top: 30px; padding-bottom: 48px; }
.board-masthead { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.board-masthead > div:first-child { flex: 1; min-width: 0; }
.board-masthead h1 { font-size: 30px; font-weight: 750; letter-spacing: -1.05px; line-height: 1.4; }
.board-masthead p { margin-top: 7px; font-size: 15px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.board-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 18px; max-width: 350px; flex-shrink: 0; color: #526172; font-size: 14px; }
.board-stats strong { margin-left: 4px; color: var(--primary-dark); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board-stats > span:nth-child(2) strong { color: var(--amber); }
.board-stats small { flex-basis: 100%; min-width: 0; text-align: right; font-size: 12px; line-height: 1.75; color: var(--muted); letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
.search-box { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 7px 8px 7px 19px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px #17212f03; }
.search-box > svg { color: #63748a; }
.search-box:focus-within { border-color: #719df6; box-shadow: 0 0 0 3px #2563eb0d; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0 !important; background: transparent; color: var(--ink); font-size: 16px; }
.search-box input::placeholder { color: #67768a; opacity: 1; }
.search-box button { min-height: 40px; padding: 0 25px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 650; }
.search-box button:hover { background: var(--primary-dark); }
.category-tabs { display: flex; align-items: stretch; gap: 26px; margin-top: 17px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #dbe3ee; }
.category-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 3px; border-bottom: 3px solid transparent; font-size: 16px; font-weight: 600; white-space: nowrap; color: #57677a; }
.category-tabs button.active { border-bottom-color: var(--primary); color: var(--primary-dark); }
.category-tabs button:hover { color: var(--primary-dark); }
.category-tabs [data-category-count] { min-width: 23px; padding: 0 6px; border-radius: 5px; background: #eaf0f7; color: #52657c; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; }
.category-tabs .active [data-category-count] { color: var(--primary-dark); background: #e3edff; }
.category-tabs [data-category="청년인턴"].active { color: var(--violet); border-color: var(--violet); }
.category-tabs [data-category="청년인턴"].active [data-category-count] { color: #6333af; background: #eee5fc; }
.category-short { display: none; }

/* Expandable full-width filters keep the result cards wide. */
.board-layout { display: block; margin-top: 18px; }
.filter-sidebar { min-width: 0; margin-bottom: 18px; }
.filter-sidebar details { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.filter-sidebar summary { min-height: 49px; padding: 11px 16px; display: flex; align-items: center; gap: 13px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 650; }
.filter-sidebar summary::-webkit-details-marker { display: none; }
.filter-sidebar summary > span:first-child { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.filter-sidebar summary > svg { margin-left: auto; color: #64758c; }
.filter-sidebar details[open] summary { border-bottom: 1px solid var(--line); }
.filter-sidebar details[open] summary > svg { transform: rotate(180deg); }
.mobile-filter-summary { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 400; color: var(--muted); }
#filter-count { color: var(--primary-dark); font-size: 12px; }
.filter-body { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 0 24px; padding: 0 20px 21px; }
.filter-intro { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; padding-top: 15px; font-size: 14px; }
.filter-intro strong { font-weight: 500; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 0; color: #52657a; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--primary-dark); }
fieldset { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 11px; font-size: 15px; font-weight: 650; }
legend small { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.region-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
.filter-chip { min-height: 34px; padding: 4px 3px; border: 1px solid #dbe3ee; border-radius: 5px; background: #fff; color: #4e627c; font-size: 13px; }
.filter-chip:hover { border-color: #9ab7ee; }
.filter-chip[aria-pressed=true] { color: var(--primary-dark); background: #edf3ff; border-color: #91b4f7; font-weight: 650; }
.check-options { display: grid; gap: 6px; }
.check-options label { display: flex; align-items: center; gap: 8px; min-height: 30px; color: #42566f; font-size: 14px; line-height: 1.5; cursor: pointer; }
input[type=checkbox] { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.mobile-filter-apply { display: none !important; }
.filter-note { display: none; }
.results-main { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; margin-bottom: 13px; }
.results-toolbar p { color: #526279; font-size: 15px; }
.results-toolbar strong { margin-left: 3px; color: var(--ink); font-weight: 750; }
.sort-tabs { display: flex; align-items: center; gap: 5px; }
.sort-tabs button { min-height: 34px; padding: 6px 11px; border-radius: 6px; color: #56677f; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sort-tabs button.active { background: #e7effd; color: var(--primary-dark); font-weight: 650; }
.sort-tabs button:hover { background: #eef3fa; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; max-width: 100%; padding-bottom: 13px; }
.active-filters button { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; min-height: 32px; padding: 5px 9px; border: 1px solid #ccddf9; border-radius: 6px; background: #edf4ff; color: #29569a; font-size: 13px; text-align: left; }
.filter-chip-label { min-width: 0; overflow-wrap: anywhere; }
.active-filters button > svg { flex: none; }
.active-filters .clear-filters { border-color: transparent; background: transparent; color: #52657c; text-decoration: underline; text-underline-offset: 3px; }

/* Employer CI is a shallow brand strip, never a stock-photo thumbnail. */
.job-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.job-batch { display: contents; }
.job-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #e0e6ef; border-radius: 13px; background: #fff; overflow: hidden; box-shadow: 0 2px 7px #17212f03; transition: border-color .16s, box-shadow .16s; }
.job-card:hover { border-color: #a9bee4; box-shadow: 0 5px 20px #17212f08; }
.card-ci { position: relative; height: 84px; flex: none; background: #fff; border-bottom: 1px solid #edf1f6; }
.card-ci-link { display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 100%; min-width: 0; padding: 13px 78px 13px 26px; }
.company-logo { display: block; width: auto; max-width: min(100%,240px); height: 56px; object-fit: contain; object-position: left center; }
/* Display the official KILF sprite's header region without modifying its image. */
.ci-sprite-kilf { display: block; position: relative; flex: none; width: 217.5px; height: 25px; overflow: hidden; }
.ci-sprite-kilf > img.company-logo { position: absolute; inset: 0 auto auto 0; width: 375px; height: auto; max-width: none; max-height: none; }
.ci-fallback { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.55px; color: #4c5d73; overflow-wrap: anywhere; word-break: keep-all; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 9px; color: #64758b; flex: none; }
.bookmark-button { position: absolute; top: 20px; right: 13px; border: 1px solid #e6ebf2; background: #fff; }
.icon-button:hover { background: #f4f7fc; color: var(--primary-dark); }
.bookmark-button[aria-pressed=true] { color: var(--primary-dark); background: #edf3ff; border-color: #cadbf8; }
.bookmark-button[aria-pressed=true] svg { fill: #dbe8ff; }
.card-content { display: flex; flex-direction: column; min-width: 0; flex: 1; padding: 21px 25px 0; }
.card-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
.card-organization { min-width: 0; color: #41536b; font-size: 15px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.card-category { color: #62728a; font-size: 12px; white-space: nowrap; }
.job-card h3 { margin: 9px 0 14px; font-size: 21px; font-weight: 700; letter-spacing: -.65px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.job-card h3 a:hover { color: var(--primary-dark); }
.notice-update { min-width: 0; margin: 0 0 15px; padding: 11px 13px; border: 1px solid #eed8af; border-left: 3px solid #bf812a; border-radius: 7px; background: #fff9ed; color: #71460e; font-size: 13px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.notice-update > strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; }
.notice-update > p { margin: 0; }
.notice-update > a { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 32px; margin-top: 3px; color: #71460e; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.notice-update > a svg { flex: 0 0 auto; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.job-tags > span { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 4px 8px; border: 1px solid #e4eaf2; border-radius: 5px; background: #f4f6fa; color: #455872; font-size: 14px; font-weight: 500; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.job-tags > .employment-tag { background: #edf3ff; border-color: #d9e5fa; color: #2857a2; font-weight: 600; }
.job-tags > .region-tag { background: #fff; border-color: #e6ebf2; color: #52647d; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.feature-tags > span { padding: 3px 6px; border-radius: 4px; background: #f0f4fa; color: #4c6180; font-size: 12px; font-weight: 600; line-height: 1.4; }
.feature-tags > .intern-tag { color: #7041bd; background: #f4effc; }
.feature-tags > .recruit-count { padding-left: 0; background: transparent; color: #4f617a; }
.card-period { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: auto; padding-top: 6px; color: #53647c; font-size: 14px; line-height: 1.75; letter-spacing: 0; overflow-wrap: anywhere; word-break: keep-all; }
.card-period > span:first-child { color: #62728a; font-size: 12px; white-space: nowrap; }
.period-dates { font-variant-numeric: tabular-nums; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 60px; margin-top: 16px; padding: 11px 0; border-top: 1px solid #edf1f6; }
.card-status { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.deadline-badge { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #edf3fd; color: #28579f; font-size: 14px; font-weight: 750; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.deadline-badge.urgent { background: #fff3df; color: #9b5008; }
.deadline-badge.closed { background: #edf1f6; color: #58687e; }
.reception-status { color: #53647b; font-size: 13px; line-height: 1.5; }
.sample-label { padding: 1px 4px; border: 1px solid #e1d2b5; border-radius: 3px; background: #faf4e8; color: #77552c; font-size: 11px; white-space: nowrap; }
.card-detail-link { display: flex; align-items: center; gap: 5px; min-height: 32px; margin-left: auto; color: var(--primary-dark); font-size: 14px; font-weight: 600; white-space: nowrap; }
.card-detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-closed { background: #fcfdff; }
.is-closed .card-detail-link { color: #536780; }

/* Stable ad containers stay connected while the card batches update. */
.ad-block { position: relative; grid-column: 1/-1; min-width: 0; padding: 23px 9px 8px; border: 1px solid #e1e7ef; border-radius: 7px; background: #f0f3f7; overflow: hidden; }
.ad-label { position: absolute; top: 5px; left: 11px; color: #5e6d82; font-size: 11px; line-height: 1.5; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; min-height: 90px; }
.ad-placeholder { color: #64748a; font-size: 13px; }
.ad-list { min-height: 121px; }
.ad-article { min-height: 281px; margin: 25px 0; }
.ad-article .ad-slot { min-height: 250px; }
.ad-slot ins { width: 100%; }
.load-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 49px; margin-top: 23px; border: 1px solid #cfdaeb; border-radius: 8px; background: #fff; color: #345789; font-size: 15px; font-weight: 600; }
.load-more > span { color: #5a6f8c; font-size: 13px; font-weight: 400; }
.load-more:hover { border-color: #9bb9ed; background: #f4f8ff; }
.empty-state { grid-column: 1/-1; min-height: 240px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #60758f; }
.empty-state h3 { margin-top: 14px; color: #2e435d; font-size: 19px; font-weight: 650; }
.empty-state p { max-width: 380px; margin-top: 7px; color: var(--muted); font-size: 15px; }
.empty-state button { min-height: 38px; margin-top: 18px; color: var(--primary-dark); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.source-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.source-note svg { margin-top: 3px; }
.inline-notice, .view-notice { margin-bottom: 14px; padding: 12px 15px; border: 1px solid #d4e2f8; border-radius: 7px; background: #f0f5ff; color: #3b5d90; font-size: 14px; line-height: 1.75; }
.inline-notice { border-color: #eddbb8; background: #fff7e9; color: #79541f; }
.inline-notice a { text-decoration: underline; text-underline-offset: 3px; }

/* Calendar and reusable document primitives */
.calendar-panel { padding: 22px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.calendar-heading h3 { font-size: 20px; font-weight: 650; }
.calendar-heading > div { display: flex; gap: 6px; }
.calendar-heading button { min-width: 35px; height: 35px; padding: 0 9px; border: 1px solid #cfdbed; border-radius: 6px; color: #3c5b85; font-size: 14px; }
.calendar-heading button:hover { background: #f0f5ff; }
.calendar-days, .calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.calendar-weekdays span { padding-bottom: 10px; text-align: center; color: #60728b; font-size: 13px; }
.calendar-weekdays span:first-child { color: #a85449; }
.calendar-day { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 72px; padding: 8px 10px; border: 1px solid #e4eaf4; border-radius: 6px; color: #4d6689; font-size: 14px; }
.calendar-day:hover { background: #f4f7ff; }
.calendar-day.is-today > span { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; color: var(--primary-dark); }
.calendar-day.is-selected { background: #eaf2ff; border-color: #7da8f5; }
.calendar-day.has-jobs { background: #f6f9ff; color: #254d88; }
.calendar-day.has-jobs.is-selected { background: #eaf2ff; }
.calendar-day small { padding: 0 5px; border-radius: 3px; color: #345f9e; background: #e7effb; font-size: 11px; }
.calendar-day.muted { border-color: transparent; }
.calendar-caption { margin-top: 14px; color: var(--muted); font-size: 12px; }
.button-primary, .button-secondary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 650; line-height: 1.5; text-align: center; word-break: keep-all; }
.button-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button-primary.disabled { background: #edf1f7; border-color: #dce4f0; color: #65748c; cursor: default; }
.button-secondary { margin-top: 10px; background: #fff; border-color: #cdd9ed; color: #3a5f96; }
.button-secondary:hover { background: #f4f8ff; }
.button-secondary[aria-pressed=true] { color: var(--primary-dark); border-color: #afc9f5; background: #edf4ff; }
.notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #d6e2f5; border-radius: 7px; background: #f2f6fd; color: #45648c; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; word-break: keep-all; }
.notice-demo { background: #fff7e9; border-color: #edddbd; color: #79541e; }
.notice-closed { background: #f1f4f8; border-color: #dce4ef; color: #53677f; }
.prose { color: #3e4f65; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; word-break: keep-all; }
.preserve-lines { white-space: pre-line; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
.breadcrumbs > span { min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.section-kicker { color: #5c7395; font-size: 13px; font-weight: 600; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 19px; }
.section-heading h2 { font-size: 22px; line-height: 1.5; }
.section-heading > a { display: flex; align-items: center; gap: 5px; color: var(--primary-dark); font-size: 14px; white-space: nowrap; }
.content-page { max-width: 900px; padding-top: 34px; padding-bottom: 52px; min-height: 65vh; }
.back-link { display: flex; align-items: center; gap: 8px; margin-bottom: 25px; color: #426795; font-size: 14px; }
.back-link svg { transform: rotate(180deg); }
.content-page h1 { margin: 7px 0 24px; font-size: 29px; letter-spacing: -.8px; }
.page-prose { padding: 30px 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.page-prose h2 { margin-top: 28px; margin-bottom: 13px; color: #233c5f; font-size: 21px; }
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 { margin-top: 23px; margin-bottom: 10px; color: #314c73; font-size: 18px; }
.page-prose p + p { margin-top: 12px; }
.page-prose ul, .page-prose ol { padding-left: 22px; }
.page-prose li + li { margin-top: 6px; }
.page-prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.page-prose td, .page-prose th { border: 1px solid #d4deed; padding: 10px; }
.not-found { min-height: 65vh; padding-block: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found h1 { margin: 12px 0; font-size: 28px; }
.not-found p { color: #536c8d; font-size: 16px; }
.not-found .button-primary { width: auto; margin-top: 25px; padding-inline: 25px; }
.error-illustration { display: none; }

/* Footer, mobile navigation, and transient status */
.site-footer { padding: 28px 0; border-top: 1px solid #e0e7f0; background: #edf1f6; color: #52657f; }
.footer-top { display: flex; align-items: flex-start; gap: 28px; }
.footer-brand { color: #314760; font-size: 19px; letter-spacing: -.5px; }
.footer-top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; margin-left: auto; font-size: 13px; }
.footer-top nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 19px; padding-top: 18px; border-top: 1px solid #d6dfeb; font-size: 12px; line-height: 1.75; }
.footer-bottom > span { white-space: nowrap; }
#privacy-options { padding: 0; color: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 130; transform: translate(-50%,15px); opacity: 0; visibility: hidden; max-width: calc(100% - 30px); padding: 12px 18px; border-radius: 9px; background: #23374f; color: #fff; box-shadow: 0 5px 25px #12243a26; font-size: 14px; text-align: center; pointer-events: none; transition: opacity .15s,transform .15s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

@media (max-width: 1020px) {
  .header-inner { gap: 30px; }
  .desktop-nav { gap: 24px; }
  .board-masthead { align-items: flex-start; gap: 20px; }
  .board-masthead h1 { font-size: 27px; }
  .board-stats { max-width: 280px; gap: 4px 12px; }
  .filter-body { grid-template-columns: 1.8fr 1fr 1fr; gap: 0 18px; }
  .quick-filter-field { grid-column: 1/-1; }
  .quick-filter-field .check-options { display: flex; flex-wrap: wrap; gap: 8px 23px; }
  .region-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .job-grid { gap: 18px; }
  .card-content { padding: 19px 21px 0; }
  .card-ci-link { padding-left: 22px; }
  .job-card h3 { font-size: 20px; }
  .card-period { display: block; }
  .card-period > span { display: block; }
}

/* Filter interaction remains at 760px to match the existing draft/apply logic. */
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom,0px)); }
  .wrap, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .demo-banner { min-height: 27px; padding-block: 4px; gap: 7px; font-size: 11px; }
  .site-header { height: 62px; }
  .header-inner { justify-content: space-between; gap: 10px; }
  .brand { font-size: 21px; letter-spacing: -.65px; gap: 7px; }
  .brand img { width: 27px; height: 27px; }
  .desktop-nav { display: none; }
  .header-about { gap: 4px; font-size: 13px; }
  .header-about svg { width: 14px; }
  .board-main { padding-top: 22px; padding-bottom: 35px; }
  .board-masthead { display: block; margin-bottom: 18px; }
  .board-masthead h1 { font-size: 26px; letter-spacing: -.8px; }
  .board-masthead p { margin-top: 6px; font-size: 14px; line-height: 1.65; }
  .board-stats { max-width: none; justify-content: flex-start; gap: 2px 17px; margin-top: 12px; font-size: 13px; }
  .board-stats strong { margin-left: 3px; font-size: 17px; }
  .board-stats small { text-align: right; font-size: 12px; line-height: 1.75; }
  .search-box { min-height: 51px; gap: 9px; padding: 6px 7px 6px 13px; border-radius: 8px; }
  .search-box > svg { width: 20px; height: 20px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: 13px; }
  .search-box button { min-height: 37px; padding: 0 19px; font-size: 14px; }
  .category-tabs { gap: 21px; margin-top: 12px; }
  .category-tabs button { min-height: 49px; gap: 6px; padding: 10px 2px; font-size: 14px; }
  .category-tabs [data-category-count] { min-width: 20px; line-height: 20px; padding: 0 4px; font-size: 11px; }
  .category-full { display: none; }
  .category-short { display: inline; }
  .board-layout { margin-top: 14px; }
  .filter-sidebar { margin-bottom: 13px; }
  .filter-sidebar summary { min-height: 47px; padding: 11px 13px; gap: 9px; font-size: 14px; }
  .mobile-filter-summary { max-width: 55%; margin-left: auto; text-align: right; font-size: 12px; }
  .filter-body { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 19px; padding: 0 16px 17px; }
  .filter-intro { padding-top: 13px; font-size: 14px; }
  .filter-body fieldset { margin-top: 15px; }
  .filter-body fieldset:first-of-type { grid-column: 1/-1; }
  .filter-body legend { font-size: 15px; }
  .region-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
  .filter-chip { min-height: 37px; padding-inline: 2px; font-size: 14px; }
  .check-options { gap: 7px; }
  .check-options label { min-height: 31px; font-size: 14px; }
  .quick-filter-field .check-options { gap: 6px 19px; }
  .mobile-filter-apply { display: flex !important; grid-column: 1/-1; margin-top: 17px; }
  .results-toolbar { flex-wrap: wrap; min-height: 37px; gap: 9px; margin-bottom: 12px; }
  .results-toolbar p { white-space: nowrap; font-size: 14px; }
  .sort-tabs { gap: 2px; margin-left: auto; }
  .sort-tabs button { min-height: 33px; padding: 6px 7px; font-size: 12px; }
  .active-filters { gap: 5px; padding-bottom: 11px; }
  .active-filters button { min-height: 31px; padding: 4px 7px; font-size: 12px; }
  .job-grid { gap: 16px; }
  .card-content { padding: 18px 18px 0; }
  .card-ci-link { padding-left: 19px; padding-right: 68px; }
  .job-card h3 { font-size: 19px; }
  .card-organization { font-size: 14px; }
  .job-tags { gap: 5px; }
  .job-tags > span { padding: 3px 6px; font-size: 14px; }
  .card-period { font-size: 13px; }
  .card-bottom { margin-top: 14px; min-height: 59px; gap: 7px; }
  .card-status { gap: 5px; }
  .reception-status { font-size: 12px; }
  .card-detail-link { font-size: 13px; }
  .ad-list, .ad-article { min-height: 281px; }
  .ad-slot, .ad-article .ad-slot { min-height: 250px; }
  .ad-article { margin: 21px 0; }
  .load-more { min-height: 48px; margin-top: 19px; font-size: 15px; }
  .load-more > span { font-size: 12px; }
  .source-note { gap: 7px; margin-top: 20px; font-size: 12px; }
  .source-note > svg { width: 16px; height: 16px; }
  .inline-notice, .view-notice { padding: 11px 13px; font-size: 13px; }
  .calendar-panel { padding: 17px 12px; margin-bottom: 15px; }
  .calendar-heading { margin-bottom: 17px; }
  .calendar-heading h3 { font-size: 18px; }
  .calendar-heading button { min-width: 31px; height: 33px; padding-inline: 7px; font-size: 12px; }
  .calendar-days, .calendar-weekdays { gap: 4px; }
  .calendar-weekdays span { font-size: 12px; }
  .calendar-day { min-height: 59px; padding: 6px; font-size: 13px; }
  .calendar-day small { padding-inline: 3px; font-size: 10px; }
  .calendar-caption { margin-top: 13px; font-size: 11px; }
  .site-footer { padding: 25px 0; }
  .footer-top { flex-direction: column; gap: 15px; }
  .footer-brand { font-size: 20px; }
  .footer-top nav { margin-left: 0; gap: 8px 15px; font-size: 12px; }
  #privacy-options { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 10px; margin-top: 17px; padding-top: 15px; font-size: 11px; }
  .mobile-nav { position: fixed; display: flex; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(64px + env(safe-area-inset-bottom,0px)); padding-bottom: env(safe-area-inset-bottom,0px); border-top: 1px solid #dce5f0; background: #fffffff7; backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 4px; color: #596d86; font-size: 11px; font-weight: 550; }
  .mobile-nav a.active { color: var(--primary-dark); background: #f4f7ff; }
  .mobile-nav a.active svg { stroke-width: 2; }
  .mobile-nav small { margin-left: 2px; font-size: 10px; }
  .toast { bottom: calc(79px + env(safe-area-inset-bottom,0px)); min-width: 230px; padding: 12px 16px; font-size: 13px; }
  .content-page { padding-top: 27px; padding-bottom: 38px; }
  .content-page h1 { margin-bottom: 22px; font-size: 27px; line-height: 1.4; }
  .back-link { margin-bottom: 24px; font-size: 13px; }
  .page-prose { padding: 24px 21px; border-radius: 9px; }
  .page-prose h2 { font-size: 20px; }
  .page-prose h3 { font-size: 18px; }
  .page-prose table { font-size: 13px; }
  .page-prose td, .page-prose th { padding: 8px; }
  .not-found { min-height: 60vh; padding-block: 38px; }
  .not-found h1 { font-size: 24px; line-height: 1.5; }
  .not-found p { max-width: 290px; font-size: 15px; }
  .not-found .button-primary { font-size: 14px; }
}

/* One readable card per row on phones, including 595px narrow windows. */
@media (max-width: 639px) {
  .job-grid { grid-template-columns: minmax(0,1fr); }
  .board-masthead h1 { font-size: 25px; }
  .card-ci { height: 68px; }
  .card-ci-link { padding: 10px 73px 10px 20px; }
  .company-logo { height: 46px; max-width: min(100%,215px); }
  .ci-fallback { font-size: 16px; }
  .bookmark-button { top: 12px; right: 12px; }
  .card-content { padding: 19px 20px 0; }
  .card-organization { font-size: 15px; }
  .job-card h3 { margin-top: 8px; margin-bottom: 13px; font-size: 20px; line-height: 1.55; }
  .job-tags > span { padding: 3px 7px; font-size: 14px; }
  .feature-tags { margin-bottom: 13px; }
  .card-period { display: flex; font-size: 14px; }
  .card-period > span { display: inline; }
  .card-bottom { min-height: 58px; margin-top: 15px; padding-block: 10px; }
  .card-status { gap: 6px; }
  .reception-status { font-size: 13px; }
  .card-detail-link { font-size: 14px; }
  .category-tabs { justify-content: space-between; gap: 11px; }
}

@media (max-width: 390px) {
  .wrap, .header-inner, .footer-inner { width: calc(100% - 28px); }
  .brand { font-size: 20px; }
  .board-masthead h1 { font-size: 24px; }
  .board-masthead p { font-size: 13px; }
  .board-stats { gap: 2px 13px; font-size: 12px; }
  .search-box input::placeholder { font-size: 12px; }
  .search-box button { padding-inline: 15px; }
  .category-tabs { gap: 7px; }
  .category-tabs button { gap: 4px; font-size: 13px; }
  .category-tabs [data-category-count] { min-width: 18px; padding-inline: 3px; font-size: 10px; }
  .filter-sidebar summary { font-size: 13px; }
  .mobile-filter-summary { max-width: 52%; font-size: 11px; }
  .sort-tabs button { padding-inline: 5px; font-size: 11px; }
  .results-toolbar p { font-size: 13px; }
  .card-content { padding: 18px 18px 0; }
  .card-ci-link { padding-left: 18px; }
  .job-card h3 { font-size: 19px; }
  .card-period { display: block; }
  .card-period > span { display: block; }
  .card-bottom { gap: 6px; }
  .reception-status { font-size: 12px; }
  .card-detail-link { font-size: 13px; }
  .calendar-heading h3 { font-size: 16px; }
  .calendar-heading button { padding-inline: 5px; font-size: 11px; }
  .calendar-day { padding-inline: 5px; }
  .calendar-day small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
