:root {
  --container-max: 1120px;
  --container-gutter: 32px;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: #d9dee7;
  --text: #17202a;
  --muted: #617083;
  --green: #126c57;
  --green-dark: #0d5142;
  --blue: #1e5aa8;
  --indigo: #3343a4;
  --amber: #b26200;
  --red: #b42318;
  --shadow: 0 6px 18px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

body.filter-modal-open {
  overflow: hidden;
}

body.filter-refreshing [data-list-slot="post-list"],
body.filter-refreshing [data-list-slot="result-summary"],
body.filter-refreshing [data-list-slot="active-filters"],
body.filter-refreshing [data-list-slot="pagination"] {
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.top-nav a.active,
.top-nav a:hover {
  background: #e9f4f0;
  color: var(--green-dark);
}

.intro-band,
.page-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #edf5f2 100%);
}

.home-main {
  background: #f7f8fa;
}

.list-main {
  background: #f7f8fa;
}

.home-hero {
  background: #ffffff;
}

.list-hero {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px 0 18px;
}

.home-hero-inner {
  display: grid;
  gap: 18px;
  padding: 38px 0 40px;
}

.home-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-hero-copy h1,
.home-hero-copy .lead {
  max-width: none;
}

.home-hero-copy h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
  overflow-wrap: normal;
  word-break: keep-all;
}

.home-search-panel {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.06);
}

.home-search-toggle summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.home-search-toggle summary::-webkit-details-marker {
  display: none;
}

.home-search-toggle[open] {
  width: min(680px, 100%);
  padding: 12px;
}

.home-search-toggle[open] summary {
  justify-content: flex-start;
  min-height: 28px;
  margin-bottom: 8px;
  color: var(--muted);
}

.home-search-body {
  display: grid;
  gap: 10px;
}

.home-quick-links {
  justify-content: center;
}

.page-band .container {
  padding: 20px 0 16px;
}

.list-hero-inner {
  max-width: 820px;
  padding: 30px 0 32px;
  text-align: center;
}

.list-hero-inner h1,
.list-hero-inner .lead {
  max-width: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.3;
}

h3 {
  margin: 5px 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.search-panel {
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-bar input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.search-bar button,
.filter-bar button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.search-bar button,
.filter-bar button,
.button.primary {
  background: var(--green);
  color: #fff;
}

.search-bar button:hover,
.filter-bar button:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.quick-links,
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links {
  margin-top: 12px;
}

.quick-links a,
.chip-grid a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}

.quick-links a:hover,
.chip-grid a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.dashboard,
.list-shell,
.link-bands {
  padding: 18px 0;
}

.home-section.container {
  width: min(1040px, calc(100% - var(--container-gutter)));
}

.list-content.container {
  width: min(920px, calc(100% - var(--container-gutter)));
}

.home-section {
  padding: 54px 0 0;
}

.home-section + .home-section {
  padding-top: 66px;
}

.home-section-head {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.home-section-head h2 {
  font-size: 26px;
}

.home-ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.home-ranking-column {
  min-width: 0;
}

.home-ranking-column .section-head {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.home-ranking-column .post-list {
  width: min(520px, 100%);
  margin: 0 auto;
}

.home-link-section {
  padding-bottom: 12px;
}

.home-link-bands {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 0;
}

.two-column,
.link-bands {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head a {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.filter-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.05);
}

.filter-panel:not([open]) {
  width: min(240px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 6px 10px;
  box-shadow: none;
}

.filter-panel summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel summary::-webkit-details-marker {
  display: none;
}

.filter-panel summary::after {
  content: "열기";
  min-width: 44px;
  color: var(--green-dark);
  text-align: right;
}

.filter-panel[open] summary {
  margin-bottom: 8px;
}

.filter-panel[open] summary::after {
  content: "접기";
}

.filter-panel summary strong {
  color: var(--text);
}

.list-search-panel {
  max-width: 760px;
  margin: 0 auto 10px;
}

.list-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.05);
}

.list-search-input {
  min-width: 0;
}

.list-search-input input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

.list-search-input input:focus {
  box-shadow: inset 0 0 0 2px rgba(18, 108, 87, 0.25);
}

.list-search-submit,
.filter-open-button,
.filter-close-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.list-search-submit {
  width: 44px;
  padding: 0;
}

.list-search-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.filter-open-button {
  gap: 6px;
  padding: 0 13px;
  color: var(--green-dark);
}

.filter-open-button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.list-search-submit:hover,
.filter-open-button:hover,
.filter-close-button:hover,
.list-search-submit:focus-visible,
.filter-open-button:focus-visible,
.filter-close-button:focus-visible {
  border-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

.filter-modal[hidden] {
  display: none;
}

.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
}

.filter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.filter-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 820px);
  max-height: min(86vh, 720px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(23, 32, 42, 0.18);
  padding: 18px;
}

.filter-modal-sheet:focus {
  outline: none;
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-modal-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.filter-close-button {
  min-height: 36px;
  padding: 0 12px;
}

.filter-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-quick-actions button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.filter-quick-actions button:first-child {
  border-color: #b9d8ce;
  background: #e9f4f0;
  color: var(--green-dark);
}

.filter-quick-actions button:hover,
.filter-quick-actions button:focus-visible {
  border-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

.filter-option-groups {
  display: grid;
  gap: 18px;
}

.filter-option-group {
  display: grid;
  gap: 9px;
}

.filter-option-group h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.filter-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-choice-grid.compact {
  gap: 8px;
}

.filter-choice {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-choice:hover,
.filter-choice:focus-visible {
  border-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

.filter-choice.active {
  border-color: var(--green);
  background: #e9f4f0;
  color: var(--green-dark);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.filter-bar label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.deadline-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.deadline-tabs a {
  display: inline-flex;
  min-height: 36px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.deadline-tabs a.active,
.deadline-tabs a:hover {
  border-color: var(--green);
  background: #e9f4f0;
  color: var(--green-dark);
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  justify-content: center;
}

.result-summary strong {
  color: var(--text);
}

.active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 10px;
  padding: 0;
  color: var(--muted);
}

.active-filter-bar strong {
  margin-right: 2px;
  color: var(--text);
  font-size: 13px;
}

.active-filter-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.active-filter-bar a,
.active-filter-bar span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.active-filter-bar a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.post-list {
  display: grid;
  gap: 8px;
}

.post-list.compact {
  gap: 8px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  min-height: 104px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: #b7c7d9;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  background: #fbfcfe;
  outline: none;
}

.post-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 108, 87, 0.18), var(--shadow);
}

.post-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge,
.source,
.score,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: #fff1df;
  color: var(--amber);
}

.badge.deadline-today {
  background: #ffe8e4;
  color: var(--red);
}

.badge.deadline-d1,
.badge.deadline-d3 {
  background: #fff1df;
  color: var(--amber);
}

.badge.deadline-week,
.badge.deadline-open {
  background: #e9f4f0;
  color: var(--green-dark);
}

.badge.deadline-always {
  background: #eceeff;
  color: var(--indigo);
}

.badge.deadline-unknown,
.badge.deadline-muted {
  background: #edf0f4;
  color: var(--muted);
}

.source {
  background: #e9eff8;
  color: var(--blue);
}

.source.startup-support {
  background: #eceeff;
  color: var(--indigo);
}

.score,
.meta-chip {
  background: #edf0f4;
  color: var(--muted);
}

.post-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 2.7em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.post-main {
  min-width: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.meta-grid div,
.detail-list div {
  min-width: 0;
}

.meta-grid dt,
.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-grid dd,
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.preserve-lines {
  white-space: pre-line;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 13px;
}

.compact-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  margin-top: -4px;
}

.post-view-count {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.post-view-count em {
  margin-left: 4px;
  color: var(--green-dark);
  font-style: normal;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.detail-actions .button {
  min-height: 44px;
}

.blog-shell,
.blog-detail {
  padding: 18px 0 0;
}

.blog-list {
  display: grid;
  gap: 10px;
}

.blog-card a {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(23, 32, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  border-color: #b7c7d9;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}

.blog-card h2 {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

.blog-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-detail {
  display: grid;
  gap: 14px;
}

.blog-article-head {
  padding-top: 10px;
}

.blog-content {
  display: grid;
  gap: 14px;
}

.blog-content h2 {
  margin: 6px 0 0;
  color: var(--green-dark);
}

.blog-content h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--text);
}

.blog-content p,
.blog-content ul,
.blog-content ol {
  margin-bottom: 0;
}

.blog-content ul,
.blog-content ol {
  padding-left: 20px;
}

.blog-content li + li {
  margin-top: 5px;
}

.blog-content a {
  color: var(--blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.blog-content a:hover {
  color: var(--green-dark);
}

.blog-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 15px;
}

.blog-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.blog-callout p {
  color: var(--muted);
}

.blog-callout.summary {
  border-left-color: var(--green-dark);
  background: #f2fbf7;
}

.blog-callout.tip {
  border-left-color: var(--blue);
  background: #f4f8ff;
}

.blog-callout.warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.blog-callout.case {
  border-left-color: #64748b;
  background: #f8fafc;
}

.blog-support-cta {
  display: flex;
  justify-content: center;
}

.blog-support-cta a {
  width: min(75%, 620px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 20px rgba(18, 108, 87, 0.18);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.blog-support-cta a:hover,
.blog-support-cta a:focus-visible {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 108, 87, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.blog-related-links {
  display: grid;
  gap: 12px;
}

.blog-related-links h2 {
  margin-bottom: 0;
}

.blog-related-link-list {
  display: grid;
  gap: 9px;
}

.blog-related-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.blog-related-link span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.blog-related-link strong {
  font-size: 15px;
  line-height: 1.42;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.blog-related-link:hover,
.blog-related-link:focus-visible {
  border-color: rgba(18, 108, 87, 0.35);
  background: #f2fbf7;
  color: var(--green-dark);
  transform: translateY(-1px);
  outline: none;
}

.blog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.blog-table th,
.blog-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.blog-table th {
  background: #f3f6f8;
  font-weight: 800;
  color: var(--text);
}

.blog-table tr.alt td {
  background: #fbfcfd;
}

.blog-table tbody tr:last-child td {
  border-bottom: 0;
}

.blog-faq-list {
  display: grid;
  gap: 10px;
}

.blog-faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.blog-faq-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.blog-faq-item p {
  color: var(--muted);
}

.blog-bottom-actions {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
}

.blog-keywords .table-wrap {
  margin-top: 12px;
}

.empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.empty p {
  margin-bottom: 12px;
}

.empty-search .quick-links {
  justify-content: center;
  margin-top: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  min-width: 48px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}

.detail-shell {
  padding: 28px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 920px;
}

.detail-header {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-panel,
.detail-notice {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-header h1 {
  max-width: none;
  margin: 10px 0 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
}

.detail-hero-meta strong,
.detail-hero-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 800;
}

.detail-hero-meta strong {
  background: #e9f4f0;
  color: var(--green-dark);
}

.detail-hero-meta span {
  background: #f3f6f8;
  color: var(--text);
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.detail-chip-row span {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-panel h2 {
  margin-bottom: 12px;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.key-info-panel .detail-list {
  gap: 10px;
}

.detail-list div {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-sections {
  display: grid;
  gap: 16px;
}

.detail-subsection {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-subsection h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 17px;
}

.detail-subsection p {
  margin-bottom: 0;
}

.apply-subsection {
  margin-top: 16px;
}

.readable-copy {
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.readable-copy p,
.readable-copy ul {
  margin: 0;
}

.readable-copy ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.readable-copy li::marker {
  color: var(--green-dark);
}

.original-cta {
  margin-top: 18px;
}

.original-cta-standalone {
  margin-top: 0;
}

.original-cta a {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 9px 22px rgba(18, 108, 87, 0.18);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.original-cta a:hover,
.original-cta a:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 13px 30px rgba(18, 108, 87, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.muted-note {
  color: var(--muted);
  font-size: 13px;
}

.detail-notice {
  border-color: #e4c48f;
  background: #fff8ec;
}

.detail-notice strong {
  color: var(--amber);
}

.detail-notice p {
  margin-bottom: 0;
}

.legal-shell {
  padding: 24px 0 44px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page h3 {
  margin-top: 18px;
}

.legal-page p,
.legal-page li {
  color: #334155;
  word-break: keep-all;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-updated {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0 0 4px;
}

.footer-copy {
  color: #7a8796;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
  min-width: max-content;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.admin-shell {
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin: 0 auto;
  padding: 24px 0;
}

.admin-head,
.admin-section,
.admin-panel,
.admin-login {
  margin-bottom: 16px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-login,
.admin-metric,
.table-wrap,
.quality-list details,
.admin-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-login {
  max-width: 420px;
  margin: 56px auto;
  padding: 22px;
}

.admin-login form {
  display: grid;
  gap: 12px;
}

.admin-login label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 700;
}

.admin-login input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.admin-section {
  padding: 4px 0 10px;
}

.admin-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.admin-alert.success {
  background: #e9f4f0;
  color: var(--green-dark);
}

.admin-alert.error {
  background: #fff1df;
  color: var(--amber);
}

.admin-summary-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-metric {
  padding: 12px;
  box-shadow: 0 4px 14px rgba(23, 32, 42, 0.04);
}

.admin-metric dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.admin-metric dt,
.admin-list span {
  color: var(--muted);
  font-size: 13px;
}

.admin-metric dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.admin-metric.quality-high {
  border-color: #f3b4ad;
}

.admin-metric.quality-medium {
  border-color: #e4c48f;
}

.admin-metric.quality-low,
.admin-metric.quality-info {
  border-color: #c8d5e7;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .button,
.admin-actions button,
.admin-list-actions .button,
.admin-list-actions button {
  white-space: nowrap;
}

.button:disabled {
  border-color: var(--line);
  background: #edf0f4;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  box-shadow: 0 4px 14px rgba(23, 32, 42, 0.04);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.health-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 6px;
  padding: 2px 7px;
  background: #edf0f4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-pill.healthy {
  background: #e9f4f0;
  color: var(--green-dark);
}

.health-pill.warning {
  background: #fff1df;
  color: var(--amber);
}

.health-pill.failed {
  background: #ffe9e6;
  color: var(--red);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(23, 32, 42, 0.04);
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-list-actions .button {
  min-height: 36px;
  padding: 7px 11px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 5px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

.admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 108, 87, 0.12);
}

.admin-form-actions,
.admin-inline-form {
  display: flex;
  justify-content: flex-end;
}

.gate-summary-grid {
  margin-bottom: 10px;
}

.gate-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.gate-checklist span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gate-checklist .pass {
  border-color: #b9d8ce;
  background: #e9f4f0;
  color: var(--green-dark);
}

.gate-checklist .fail {
  border-color: #e4c48f;
  background: #fff8ec;
  color: var(--amber);
}

.quality-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quality-list details {
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(23, 32, 42, 0.04);
}

.quality-list summary {
  cursor: pointer;
  font-weight: 800;
}

.quality-list p {
  margin: 8px 0 10px;
  color: var(--muted);
}

@media (min-width: 720px) {
  h1 {
    font-size: 34px;
  }

  .intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 24px 0 20px;
  }

  .home-hero-inner {
    padding: 46px 0 50px;
  }

  .home-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
  }

  .filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .filter-modal {
    align-items: center;
    padding: 28px;
  }

  .filter-modal-sheet {
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(23, 32, 42, 0.22);
  }

  .filter-panel[open] summary {
    margin-bottom: 8px;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .link-bands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-field-wide,
  .admin-form-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .home-hero-copy h1 {
    font-size: 40px;
  }

  .home-ranking-grid {
    column-gap: 58px;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  :root {
    --container-gutter: 20px;
  }

  .container {
    width: min(var(--container-max), calc(100% - var(--container-gutter)));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .top-nav {
    gap: 2px;
    width: 100%;
  }

  .top-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    gap: 16px;
    padding: 28px 0 30px;
  }

  .home-hero-copy {
    text-align: left;
  }

  .home-hero-copy h1 {
    overflow-wrap: anywhere;
  }

  .home-search-panel {
    padding: 12px;
  }

  .home-quick-links {
    justify-content: flex-start;
  }

  .home-section.container {
    width: min(var(--container-max), calc(100% - var(--container-gutter)));
  }

  .home-section {
    padding-top: 36px;
  }

  .home-section + .home-section {
    padding-top: 48px;
  }

  .home-section-head {
    margin-bottom: 16px;
    text-align: left;
  }

  .home-section-head h2 {
    font-size: 22px;
  }

  .page-band .container {
    padding: 16px 0 12px;
  }

  .list-hero-inner {
    padding: 24px 0 26px;
    text-align: left;
  }

  .list-content.container {
    width: min(var(--container-max), calc(100% - var(--container-gutter)));
  }

  .list-shell {
    padding-top: 12px;
  }

  .deadline-tabs {
    justify-content: flex-start;
  }

  .result-summary {
    justify-content: flex-start;
  }

  .post-card {
    min-height: 96px;
    padding: 12px;
  }

  .post-card h3 {
    margin: 4px 0 5px;
    font-size: 15px;
  }

  .badge,
  .source,
  .score,
  .meta-chip {
    min-height: 21px;
    padding: 2px 5px;
    font-size: 11px;
  }

  .compact-meta {
    gap: 3px 8px;
    font-size: 12px;
  }

  .compact-meta span {
    max-width: 100%;
  }

  .deadline-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

  .deadline-tabs a {
    min-height: 34px;
    min-width: 44px;
    padding: 6px 10px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-shell {
    width: min(var(--container-max), calc(100% - var(--container-gutter)));
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
  }

  .admin-head {
    flex-direction: column;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-actions .button {
    width: 100%;
  }

  .detail-shell {
    padding-top: 14px;
  }

  .detail-header,
  .detail-panel,
  .detail-notice {
    padding: 14px;
  }

  .detail-header h1 {
    font-size: 25px;
  }

  .detail-hero-meta strong,
  .detail-hero-meta span,
  .detail-chip-row span {
    width: 100%;
  }

  .blog-support-cta a {
    width: 100%;
  }
}
