:root {
  --navy-950: #081a2b;
  --navy-900: #0c2238;
  --navy-800: #12314d;
  --cyan-500: #1cbda9;
  --cyan-100: #ddf7f2;
  --slate-700: #4f5e6c;
  --slate-500: #748290;
  --slate-300: #cbd3da;
  --slate-200: #dce3e8;
  --slate-100: #edf1f4;
  --off-white: #f7f8f8;
  --white: #fff;
  --sans: Arial, "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--white); color: var(--navy-950); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.public-shell { min-height: 100vh; }
.public-topbar {
  min-height: 62px; padding: 10px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; border-bottom: 1px solid #eceeee;
}
.public-brand { display: inline-flex; align-items: center; gap: 9px; }
.public-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.public-brand strong { color: var(--navy-900); font-size: 16px; }
.public-actions { display: flex; align-items: center; gap: 10px; }
.public-actions select { min-height: 38px; max-width: 120px; padding: 6px 8px; border: 0; background: transparent; color: var(--slate-700); font-size: 13px; cursor: pointer; }
.top-link { padding: 9px 15px; border: 1px solid var(--slate-300); border-radius: 7px; color: var(--navy-900); font-size: 13px; font-weight: 700; }
.top-link:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.public-signup-link { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.public-signup-link:hover { background: var(--navy-800); border-color: var(--navy-800); }
.public-main { width: min(1440px, calc(100% - 28px)); margin: 0 auto; padding: 48px 0 80px; }
.page-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.page-heading .eyebrow { margin: 0 0 8px; color: var(--cyan-500); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.page-heading p { margin: 12px 0 0; color: var(--slate-500); font-size: 16px; line-height: 1.7; }
.public-search {
  width: min(760px, 100%); min-height: 62px; margin: 0 auto 38px; padding: 8px 8px 8px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center;
  border: 1px solid var(--slate-200); border-radius: 20px; box-shadow: 0 5px 24px rgba(8, 26, 43, .09);
}
.public-search:focus-within { border-color: var(--cyan-500); box-shadow: 0 7px 28px rgba(8, 26, 43, .12), 0 0 0 3px rgba(28, 189, 169, .1); }
.public-search input { min-width: 0; padding: 11px 4px; border: 0; outline: 0; background: transparent; color: var(--navy-950); font-size: 17px; }
.public-search button, .primary-action {
  min-height: 44px; padding: 10px 17px; display: inline-grid; place-items: center;
  border: 0; border-radius: 12px; background: var(--navy-900); color: var(--white);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.public-search button:hover, .primary-action:hover { background: var(--navy-800); }
.search-results-page { padding-bottom: 156px; }
.search-results-page::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: 132px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 44%);
  pointer-events: none;
}
.search-results-page .page-heading {
  max-width: none;
  margin: 0 0 24px;
  text-align: start;
}
.search-results-page .page-heading h1 { font-size: clamp(25px, 4vw, 34px); }
.search-results-page .page-heading p { margin-top: 8px; }
.public-search.results-search {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  width: min(760px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 9px 34px rgba(8, 26, 43, .16);
}
.result-summary { margin: 0 0 14px; color: var(--slate-500); font-size: 13px; }
.report-list { display: grid; gap: 12px; }
.report-card {
  padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px;
  border: 1px solid var(--slate-200); border-radius: 15px; background: var(--white);
}
.report-card:hover { border-color: var(--slate-300); box-shadow: 0 6px 22px rgba(8, 26, 43, .06); }
.report-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.report-card p { margin: 0; color: var(--slate-700); font-size: 15px; line-height: 1.65; }
.report-card-meta { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.report-card-meta span, .status-pill { padding: 6px 9px; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); font-size: 11px; font-weight: 700; }
.status-pill { background: var(--cyan-100); color: #0b6f62; }
.open-report { align-self: center; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.empty-card { padding: 44px 20px; border: 1px dashed var(--slate-300); border-radius: 15px; text-align: center; }
.empty-card strong { display: block; margin-bottom: 7px; font-size: 19px; }
.empty-card span { color: var(--slate-500); font-size: 14px; }
.detail-head { margin: 0 auto 24px; max-width: 1360px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.detail-head h1 { max-width: 1120px; margin: 10px 0 8px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.detail-head p { margin: 0; color: var(--slate-500); font-size: 15px; }
.back-link { color: var(--slate-500); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--navy-900); }
.case-brief {
  max-width: 1360px;
  margin: 0 auto 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 22px;
  border: 1px solid rgba(28, 189, 169, .26);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfffe 0%, #f4fbfa 100%);
  box-shadow: 0 18px 42px rgba(8, 26, 43, .07);
}
.case-brief-main > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0b6f62;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-brief-main p {
  margin: 0;
  color: var(--navy-900);
  font-size: 19px;
  line-height: 1.65;
}
.case-brief-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.case-brief-facts div {
  padding: 12px 14px;
  border: 1px solid rgba(8, 26, 43, .06);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.case-brief-facts span,
.identity-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.case-brief-facts strong {
  display: block;
  color: var(--navy-950);
  font-size: 15px;
  line-height: 1.4;
}
.detail-layout { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.detail-content { display: grid; gap: 18px; }
.detail-side { display: none; }
.detail-section { padding: 26px; border: 1px solid var(--slate-200); border-radius: 18px; background: var(--white); box-shadow: 0 12px 32px rgba(8, 26, 43, .045); }
.detail-section h2 { margin: 0 0 18px; font-size: 23px; line-height: 1.25; }
.detail-section h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.detail-section p { margin: 0; color: var(--slate-700); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.detail-grid div { min-width: 0; }
.detail-grid span { display: block; margin-bottom: 5px; color: var(--slate-500); font-size: 11px; font-weight: 700; }
.detail-grid strong { display: block; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.identity-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.identity-strip div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--off-white);
}
.identity-strip strong {
  color: var(--navy-950);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.story-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 15px;
  font-weight: 700;
}
.story-section {
  display: grid;
  gap: 4px;
}
.story-block {
  position: relative;
  padding: 22px 0 22px 58px;
  display: grid;
  border-top: 1px solid var(--slate-100);
}
.story-block:first-of-type {
  border-top: 0;
  padding-top: 2px;
}
.story-block > span {
  position: absolute;
  top: 23px;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}
.story-block:first-of-type > span { top: 3px; }
.story-block p + p {
  margin-top: 12px;
}
.source-section {
  background: #fbfcfc;
}
.source-list {
  display: grid;
  gap: 12px;
}
.source-list article {
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
}
.source-list span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0b6f62;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.source-content {
  display: grid;
  gap: 10px;
}
.source-content p {
  margin: 0;
  white-space: normal;
}
.source-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fbfcfc;
}
.source-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.source-card-main em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--cyan-100);
  color: #0b6f62;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.source-card-main strong {
  color: var(--navy-950);
  font-size: 15px;
  line-height: 1.35;
}
.source-card-main p {
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.45;
}
.source-link {
  width: fit-content;
  min-height: 34px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.source-link:hover {
  background: var(--navy-800);
}
.evidence-list { display: grid; gap: 9px; }
.evidence-item { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border: 1px solid var(--slate-200); border-radius: 10px; }
.evidence-item strong { display: block; margin-bottom: 4px; font-size: 14px; overflow-wrap: anywhere; }
.evidence-item span { color: var(--slate-500); font-size: 12px; }
.evidence-item a { align-self: center; color: var(--navy-900); font-size: 12px; font-weight: 800; }
.response-list { display: grid; gap: 10px; }
.response-item { padding: 14px; border: 1px solid var(--slate-200); border-radius: 11px; }
.response-item-head { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.response-item-head div { display: grid; gap: 4px; }
.response-item-head strong { font-size: 15px; }
.response-item-head span, .response-item time { color: var(--slate-500); font-size: 12px; }
.response-item-head em { height: fit-content; padding: 6px 9px; border-radius: 999px; background: var(--cyan-100); color: #0b6f62; font-size: 11px; font-style: normal; font-weight: 700; }
.response-item p { margin-bottom: 9px; }
.appeal-card { position: sticky; top: 20px; padding: 20px; border-radius: 15px; background: var(--navy-900); color: var(--white); }
.appeal-card h2 { margin: 0 0 8px; font-size: 18px; }
.appeal-card p { margin: 0 0 16px; color: #c8d4de; font-size: 13px; line-height: 1.6; }
.appeal-card .primary-action { width: 100%; background: var(--cyan-500); color: var(--navy-950); }
.side-facts { padding: 18px; display: grid; gap: 13px; border: 1px solid var(--slate-200); border-radius: 15px; }
.side-facts div { display: grid; gap: 4px; }
.side-facts span { color: var(--slate-500); font-size: 11px; }
.side-facts strong { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .public-main { padding-top: 32px; }
  .detail-head { display: block; }
  .detail-head h1 { font-size: 32px; }
  .detail-head .status-pill { display: inline-block; margin-top: 14px; }
  .case-brief { grid-template-columns: 1fr; padding: 18px; }
  .case-brief-main p { font-size: 17px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { grid-row: 1; }
  .appeal-card { position: static; }
  .identity-strip,
  .detail-grid { grid-template-columns: 1fr; }
  .detail-section { padding: 20px; border-radius: 15px; }
  .detail-section h2 { font-size: 23px; }
  .detail-section h3 { font-size: 20px; }
  .detail-section p { font-size: 16px; line-height: 1.8; }
  .story-block { padding-left: 0; }
  .story-block > span {
    position: static;
    margin-bottom: 10px;
  }
  .source-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .search-results-page { padding-bottom: 138px; }
  .public-search.results-search {
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 58px;
    padding: 7px 7px 7px 14px;
    border-radius: 18px;
  }
  .public-search.results-search button { min-height: 42px; padding-inline: 14px; }
}
@media (max-width: 520px) {
  .public-topbar { padding-inline: 12px; }
  .public-actions select { display: none; }
  .top-link { padding-inline: 10px; }
  .report-card { grid-template-columns: 1fr; }
  .open-report { justify-self: start; }
  .detail-head { display: block; }
  .detail-head .status-pill { display: inline-block; margin-top: 12px; }
}
