.pl-page {
  width: var(--page);
  margin: 32px auto 72px;
  overflow-wrap: anywhere;
}
.pl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--lake);
  font-size: 14px;
}
.pl-heading {
  padding: 24px 0 32px;
  max-width: 800px;
}
.pl-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--lake);
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
}
.pl-heading h1 {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.25;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.pl-heading p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 640px;
}
.pl-reviewed {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
.pl-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}
.pl-catalog {
  min-width: 0;
}
.pl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 4px 8px 4px 16px;
}
.pl-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 48px;
  font-size: 16px;
  outline-offset: -2px;
}
.pl-search button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--lake);
  font-weight: 600;
}
.pl-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.pl-categories button {
  min-height: 44px;
  border-radius: 22px;
  padding: 9px 14px;
  font-size: 14px;
  border: 1px solid transparent;
}
.pl-categories [aria-pressed='true'] {
  background: var(--lake);
  color: white;
  border-color: var(--lake);
}
.pl-filterbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pl-filterbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pl-filterbar :is(select, .fic-select-trigger) {
  min-height: 44px;
  padding: 8px;
  max-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
.pl-filterbar button,
.pl-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
}
.pl-filterbar button[aria-pressed='true'],
.pl-actions button[aria-pressed='true'] {
  background: var(--lake-soft);
  color: var(--lake);
  font-weight: 600;
}
.pl-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.pl-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-section-head p {
  font-size: 13px;
  color: var(--muted);
}
.pl-section-head button {
  min-height: 44px;
  color: var(--lake);
  font-size: 13px;
  padding: 8px;
}
.pl-list {
  border-top: 1px solid var(--line-strong);
}
.pl-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.pl-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--lake);
  font-size: 13px;
}
.pl-status {
  font-size: 12px;
  color: var(--muted);
}
.pl-status[data-status='expired'] {
  color: #8f382b;
}
.pl-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 44px;
}
.pl-title h2 {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}
.pl-title .icon {
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--lake);
}
.pl-row > p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}
.pl-row-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.pl-row-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
.pl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pl-portals {
  background: var(--paper-2);
  padding: 24px;
  border-radius: 20px;
}
.pl-portals h2,
.pl-evidence h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pl-portals > p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.pl-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--lake);
  font-size: 14px;
  border-top: 1px solid var(--line-strong);
}
.pl-source .icon {
  flex-shrink: 0;
  width: 18px;
}
.pl-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 50px;
}
.pl-reading {
  background: var(--surface);
  padding: 32px;
  border-radius: 20px;
}
.pl-reading h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pl-reading section {
  margin-top: 28px;
}
.pl-reading p,
.pl-reading li {
  font-size: 15px;
  line-height: 1.9;
}
.pl-reading ul,
.pl-reading ol {
  padding-left: 22px;
  margin: 0;
}
.pl-reading li + li {
  margin-top: 10px;
}
.pl-notice {
  padding-top: 22px;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.pl-evidence {
  padding: 24px;
  background: var(--paper-2);
  border-radius: 20px;
}
.pl-evidence dl {
  margin: 0 0 20px;
  font-size: 14px;
}
.pl-evidence dt {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}
.pl-evidence dd {
  margin: 4px 0 0;
}
.pl-evidence > p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}
.pl-empty {
  background: var(--surface);
  padding: 28px 22px;
  border-radius: 16px;
}
.pl-empty h2 {
  font-size: 19px;
  margin-bottom: 12px;
}
.pl-empty p {
  color: var(--ink-2);
  margin-bottom: 18px;
}
.pl-comparison {
  margin-top: 36px;
  border-top: 2px solid var(--lake);
  padding-top: 12px;
  scroll-margin-top: 90px;
}
.pl-compare-grid article > a {
  display: block;
  min-height: 44px;
}
.pl-comparison h2 {
  font-size: 21px;
}
.pl-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.pl-compare-grid article {
  min-width: 0;
  background: var(--surface);
  padding: 22px;
  border-radius: 16px;
}
.pl-compare-grid h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.pl-compare-grid h4 {
  font-size: 13px;
  margin: 20px 0 6px;
  color: var(--lake);
}
.pl-compare-grid p,
.pl-compare-grid li {
  font-size: 14px;
  line-height: 1.8;
}
.pl-compare-grid ul {
  padding-left: 18px;
}
.pl-compare-grid button {
  min-height: 44px;
  color: var(--lake);
  margin-top: 12px;
}
.pl-footnote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}
html[data-ui='mobile'] .pl-page {
  width: auto;
  margin: 12px 0 28px;
}
html[data-ui='mobile'] .pl-heading {
  padding: 12px 0 26px;
}
html[data-ui='mobile'] .pl-heading h1 {
  font-size: 28px;
  line-height: 1.35;
}
html[data-ui='mobile'] .pl-heading p {
  font-size: 14px;
  line-height: 1.8;
}
html[data-ui='mobile'] .pl-kicker {
  font-size: 12px;
  margin-bottom: 12px;
}
html[data-ui='mobile'] .pl-library-layout,
html[data-ui='mobile'] .pl-detail-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
html[data-ui='mobile'] .pl-categories {
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}
html[data-ui='mobile'] .pl-categories button {
  padding: 9px 11px;
  font-size: 13px;
  flex: 0 0 auto;
  white-space: nowrap;
}
html[data-ui='mobile'] .pl-title h2 {
  font-size: 17px;
}
html[data-ui='mobile'] .pl-row {
  padding: 20px 0;
}
html[data-ui='mobile'] .pl-reading,
html[data-ui='mobile'] .pl-evidence {
  padding: 22px 18px;
}
html[data-ui='mobile'] .pl-detail .pl-heading h1 {
  font-size: 24px;
}
html[data-ui='mobile'] .pl-filterbar {
  align-items: flex-start;
}
html[data-ui='mobile'] .pl-filterbar label {
  flex-wrap: wrap;
  gap: 6px;
}
html[data-ui='mobile'] .pl-filterbar :is(select, .fic-select-trigger) {
  max-width: 190px;
}

/* Policy library: a compact introduction, one query panel and readable results. */
.pl-library .pl-heading {
  padding: 14px 0 24px;
  max-width: 760px;
}
.pl-library .pl-kicker { margin-bottom: 10px; letter-spacing: .08em; }
.pl-library .pl-heading h1 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; }
.pl-library .pl-heading p { margin: 0; }
.pl-library .pl-reviewed { margin-top: 14px; font-size: 12px; }
.pl-filters {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.pl-library .pl-search { background: var(--paper); border-radius: 12px; }
.pl-library .pl-search > .icon { width: 20px; height: 20px; color: var(--lake); flex: none; }
.pl-library .pl-search button { background: var(--lake); color: white; border-radius: 9px; }
.pl-library .pl-categories { margin: 12px 0; gap: 4px; }
.pl-library .pl-categories button { padding: 9px 12px; font-size: 13px; }
.pl-library .pl-filterbar { border-bottom: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
.pl-library .pl-filterbar > button { padding: 8px; }
.pl-library .pl-filterbar .icon, .pl-library .pl-actions .icon { width: 18px; height: 18px; flex: none; }
.pl-library .pl-section-head { margin: 8px 0; gap: 4px; }
.pl-library .pl-section-head p { color: var(--ink-2); }
.pl-library .pl-list { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pl-library .pl-row { padding: 22px; border-bottom: 1px solid var(--line); }
.pl-library .pl-row:last-child { border-bottom: 0; }
.pl-library .pl-row-meta { gap: 8px; font-size: 12px; }
.pl-library .pl-row-meta > span:first-child { font-weight: 600; }
.pl-library .pl-status { padding: 3px 8px; border-radius: 5px; background: var(--paper); font-size: 11px; }
.pl-library .pl-status[data-status='current'] { color: var(--lake); background: var(--lake-soft); }
.pl-library .pl-title { gap: 12px; padding: 10px 0 8px; }
.pl-library .pl-title h2 { flex: 1; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.pl-library .pl-title .icon { width: 18px; height: 18px; }
.pl-library .pl-row > p { line-height: 1.75; }
.pl-library .pl-row-bottom { margin-top: 12px; gap: 4px 12px; }
.pl-library .pl-actions { margin-left: auto; }
.pl-library :is(button, a, input):focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
html[data-ui='mobile'] .pl-library .pl-heading { padding: 8px 0 20px; }
html[data-ui='mobile'] .pl-library .pl-kicker { font-size: 11px; margin-bottom: 8px; }
html[data-ui='mobile'] .pl-library .pl-heading h1 { font-size: 26px; margin-bottom: 12px; }
html[data-ui='mobile'] .pl-library .pl-heading p { font-size: 14px; line-height: 1.75; }
html[data-ui='mobile'] .pl-library .pl-reviewed { margin-top: 12px; line-height: 1.6; }
html[data-ui='mobile'] .pl-filters { padding: 12px; border-radius: 16px; }
html[data-ui='mobile'] .pl-library .pl-search { padding: 4px 4px 4px 10px; gap: 6px; }
html[data-ui='mobile'] .pl-library .pl-search input { min-height: 44px; }
html[data-ui='mobile'] .pl-library .pl-search button { padding: 8px 10px; font-size: 13px; }
html[data-ui='mobile'] .pl-library .pl-categories { margin: 8px -4px; padding: 0 4px 4px; }
html[data-ui='mobile'] .pl-library .pl-filterbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 8px; align-items: end; }
html[data-ui='mobile'] .pl-library .pl-filterbar label { flex-direction: column; align-items: flex-start; font-size: 12px; gap: 4px; min-width: 0; }
html[data-ui='mobile'] .pl-library .pl-filterbar :is(select, .fic-select-trigger) { font-size: 12px; max-width: 100%; }
html[data-ui='mobile'] .pl-library .pl-filterbar > button { font-size: 12px; }
html[data-ui='mobile'] .pl-library .pl-row { padding: 16px; }
html[data-ui='mobile'] .pl-library .pl-title h2 { font-size: 17px; }
html[data-ui='mobile'] .pl-library .pl-row-bottom > span { flex-basis: 100%; line-height: 1.6; }
html[data-ui='mobile'] .pl-library .pl-actions button { padding: 8px; }
html[data-ui='mobile'] .pl-library .pl-portals { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
