:root {
  color-scheme: light;
  --ink: #241f1b;
  --muted: #71685f;
  --soft: #faf7f1;
  --paper: #fffdf8;
  --line: #ded5c9;
  --red: #e3312d;
  --red-dark: #a61f1b;
  --green: #1d7c59;
  --blue: #315f9d;
  --gold: #9b6a16;
  --cyan: #0f8da8;
  --pink: #e84773;
  --night: #171514;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: #f6f3ee;
  color: var(--ink);
  margin: 0;
}

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

.portal-header {
  background: white;
  border-bottom: 1px solid #ded5c9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-row {
  align-items: center;
  background: var(--red);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  margin: 0 auto;
  max-width: none;
  padding: 12px max(22px, calc((100vw - 1240px) / 2 + 22px));
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: white;
  font-size: 25px;
  line-height: 1;
}

.brand span {
  color: #f6d7d2;
  font-size: 13px;
  font-weight: 800;
}

.portal-search {
  display: grid;
  grid-template-columns: 1fr auto;
}

.portal-search input,
.portal-search button {
  border: 0;
  font: inherit;
  min-height: 42px;
}

.portal-search input {
  border-radius: 6px 0 0 6px;
  color: var(--ink);
  padding: 0 14px;
}

.portal-search button,
.detail-cta {
  background: #241f1b;
  border-radius: 0 6px 6px 0;
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.admin-link {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 12px;
}

.portal-nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  max-width: 1240px;
  overflow-x: auto;
  padding: 9px 22px;
}

.portal-nav a {
  border-radius: 0;
  color: #4b433c;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  padding: 7px 11px;
}

.portal-nav a.active,
.portal-nav a:hover {
  background: transparent;
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.portal-shell {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 18px 22px 56px;
}

.hero-board {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.05fr) minmax(250px, 0.75fr);
}

.hero-main,
.hero-side,
.listing-head,
.data-note,
.portal-error,
.portal-loading {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero-main {
  background: var(--paper);
  border-left: 6px solid var(--red);
  color: var(--ink);
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: 26px;
}

.hero-main p {
  color: var(--muted);
}

.hero-main .eyebrow {
  color: var(--red);
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

h3 {
  font-size: 18px;
  line-height: 1.34;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-actions a,
.section-title a {
  background: var(--red);
  border-radius: 5px;
  color: white;
  font-weight: 900;
  padding: 10px 13px;
}

.hero-actions a:first-child {
  background: #241f1b;
  color: white;
}

.hero-side {
  padding: 18px;
}

.compact-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 13px 0;
}

.compact-row span,
.compact-row em,
.meta-line,
.trust-line,
.tag-line span,
.sponsored {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.compact-row strong {
  font-size: 15px;
  line-height: 1.4;
}

.channel-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 10px;
}

.channel-strip a {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 6px;
  flex: 0 0 132px;
  min-height: 76px;
  padding: 8px 12px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.channel-strip a:hover,
.portal-card:hover {
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(36, 31, 27, 0.08);
  transform: translateY(-1px);
}

.channel-strip strong {
  color: var(--red);
  font-size: 16px;
}

.channel-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.portal-section {
  display: grid;
  gap: 14px;
}

.section-title {
  align-items: end;
  border-bottom: 2px solid #241f1b;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.section-title h2 {
  color: #241f1b;
  display: inline-block;
  font-size: 25px;
  margin-bottom: 2px;
}

.section-title h2::first-letter {
  color: var(--red);
}

.section-title p {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.portal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-card a {
  display: grid;
  height: 100%;
}

.feature-card {
  height: 100%;
}

.cover {
  align-content: end;
  aspect-ratio: 16 / 9;
  background: #d9d4ca;
  color: white;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.cover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.52));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.cover img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.has-image::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.6));
}

.cover span,
.deal-badge {
  position: relative;
  z-index: 2;
}

.cover span {
  align-self: end;
  background: rgba(37, 32, 27, 0.82);
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  justify-self: stretch;
  max-width: none;
  padding: 10px 12px;
}

.cover-city { background: #537c92; }
.cover-green { background: #3d8468; }
.cover-warm { background: #be7b45; }
.cover-red { background: #d94a42; }
.cover-food { background: #936533; }
.cover-night { background: #2b2839; }

.deal-badge {
  background: white;
  border-radius: 0 0 6px 0;
  color: var(--red);
  left: 0;
  position: absolute;
  top: 0;
  justify-self: start;
  padding: 8px 10px;
}

.masonry-grid {
  column-count: 4;
  column-gap: 16px;
  display: block;
}

.masonry-grid .portal-card {
  break-inside: avoid;
  display: inline-block;
  margin: 0 0 16px;
  width: 100%;
}

.masonry-grid .portal-card:nth-child(3n + 1) .cover {
  aspect-ratio: 4 / 5;
}

.masonry-grid .portal-card:nth-child(3n + 2) .cover {
  aspect-ratio: 1 / 1;
}

.mini-card .cover {
  aspect-ratio: 21 / 9;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.meta-line,
.trust-line,
.tag-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portal-card p {
  margin-bottom: 0;
}

.tag-line span,
.sponsored {
  background: #f3efe8;
  border-radius: 12px;
  padding: 5px 8px;
}

.risk {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.risk-low { background: #e4f3ec; color: var(--green); }
.risk-medium { background: #fff1cf; color: var(--gold); }
.risk-high { background: #ffe2df; color: var(--red-dark); }

.data-note {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.data-note span {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.site-footer {
  background: #181512;
  color: white;
  display: grid;
  gap: 0;
  margin: 2px calc(50% - 50vw) 0;
  width: 100vw;
}

.footer-subscribe {
  align-items: center;
  background: #fffdf8;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  justify-self: center;
  max-width: 1240px;
  padding: 24px 32px;
  width: min(100%, 1240px);
}

.footer-subscribe h2,
.footer-app h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-subscribe p {
  margin-bottom: 0;
  max-width: 720px;
}

.footer-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-subscribe-form input,
.footer-subscribe-form button {
  border: 1px solid var(--line);
  font: inherit;
  min-height: 44px;
}

.footer-subscribe-form input {
  border-radius: 6px 0 0 6px;
  padding: 0 14px;
}

.footer-subscribe-form button {
  background: var(--red);
  border-color: var(--red);
  border-radius: 0 6px 6px 0;
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.footer-app {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  justify-self: center;
  max-width: 1240px;
  padding: 28px 32px 18px;
  width: min(100%, 1240px);
}

.footer-app p {
  color: #e9ded2;
  margin-bottom: 0;
}

.footer-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-actions a {
  background: white;
  border-radius: 5px;
  color: #181512;
  font-size: 13px;
  font-weight: 900;
  padding: 12px 16px;
}

.footer-actions .footer-community {
  background: var(--red);
  color: white;
}

.footer-links {
  display: grid;
  gap: 14px;
  justify-self: center;
  max-width: 1240px;
  padding: 0 32px 28px;
  width: min(100%, 1240px);
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a,
.footer-links p {
  color: #d9d1c7;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0;
}

.listing-head {
  padding: 28px;
}

.listing-head h1 {
  margin-bottom: 10px;
}

.listing-head span {
  color: var(--muted);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 860px) minmax(300px, 1fr);
  justify-content: center;
}

.detail-head,
.detail-content,
.detail-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
}

.detail-head {
  grid-column: 1 / 2;
  padding: 32px;
}

.detail-head > a {
  color: var(--red);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 14px;
}

.detail-cover {
  border-radius: 8px;
  margin-bottom: 18px;
}

.detail-cover.cover {
  aspect-ratio: 2.15 / 1;
}

.image-credit {
  color: var(--muted);
  font-size: 12px;
  margin: -8px 0 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.detail-aside {
  align-self: start;
  display: grid;
  gap: 14px;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  padding: 18px;
  position: sticky;
  top: 128px;
}

.detail-aside div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
}

.detail-aside strong {
  font-size: 13px;
}

.detail-aside span {
  color: var(--muted);
  font-size: 14px;
}

.detail-cta {
  border-radius: 6px;
  display: block;
  padding: 12px;
  text-align: center;
}

.detail-content {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 32px;
}

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

.detail-content section:first-child {
  padding-top: 0;
}

.detail-content section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-content ul,
.detail-content ol {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  padding-left: 22px;
}

.detail-content li + li {
  margin-top: 8px;
}

.section-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.fact-strip {
  background: #241f1b;
  border-bottom: 0 !important;
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 !important;
}

.fact-strip div {
  background: #332d27;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 15px;
}

.fact-strip span {
  color: #d7cfc6;
  font-size: 12px;
  font-weight: 900;
}

.fact-strip strong {
  color: white;
  font-size: 15px;
  line-height: 1.45;
}

.task-panel {
  background: #fff8f0;
}

.quick-check-grid,
.example-grid,
.pitfall-list,
.asset-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-check-grid article,
.example-grid article,
.pitfall-list article,
.asset-card,
.fallback-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.quick-check-grid strong,
.example-grid strong {
  color: #241f1b;
}

.quick-check-grid p,
.example-grid p,
.pitfall-list p,
.fallback-section p {
  margin-bottom: 0;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 14px;
}

.step-list article {
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 18px;
}

.step-list article > span {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.step-list h3,
.pitfall-list h3,
.fallback-section h3 {
  margin-bottom: 4px;
}

.step-list em {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  margin-top: 8px;
}

.detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  position: relative;
  scrollbar-color: var(--red) #f1e7da;
  scrollbar-width: thin;
  width: 100%;
}

.detail-table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

.detail-table th,
.detail-table td {
  border: 1px solid var(--line);
  color: #463f38;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  background: #fff3e2;
  color: #241f1b;
  font-weight: 900;
}

.visa-material-grid {
  display: grid;
  gap: 18px;
}

.visa-material-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.visa-material-card > span {
  background: #fff3e2;
  border-radius: 999px;
  color: var(--red-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 6px 10px;
}

.compact-material-table {
  min-width: 560px;
}

.document-card-list {
  display: none;
}

.asset-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f3efe8;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.asset-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.asset-type {
  background: #fff3e2;
  border-radius: 999px;
  color: var(--red-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 6px 10px;
}

.asset-card a,
.asset-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.rich-media-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.25fr 0.75fr;
  padding-top: 0 !important;
}

.rich-media-strip figure {
  background: #f3efe8;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.rich-media-strip figure.featured {
  grid-row: span 2;
}

.rich-media-strip img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rich-media-strip figure.featured img {
  aspect-ratio: 16 / 10;
}

.rich-media-strip a {
  color: inherit;
  display: block;
  height: 100%;
  position: relative;
}

.rich-media-strip a span {
  background: rgba(36, 31, 27, 0.78);
  border-radius: 999px;
  bottom: 12px;
  color: #fffefa;
  font-size: 13px;
  font-weight: 900;
  left: 12px;
  padding: 8px 12px;
  position: absolute;
}

.rich-media-strip figcaption {
  background: linear-gradient(180deg, transparent, rgba(36, 31, 27, 0.74));
  bottom: 0;
  color: #fffefa;
  font-size: 12px;
  left: 0;
  padding: 28px 12px 10px;
  position: absolute;
  right: 0;
}

.rich-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rich-actions a {
  background: #fff8ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 14px;
}

.rich-actions a.primary {
  background: var(--red);
  color: #fffefa;
}

.rich-actions strong {
  font-size: 15px;
}

.rich-actions span {
  color: inherit;
  font-size: 12px;
  opacity: 0.75;
}

.info-card-grid,
.warning-grid,
.checklist-grid,
.useful-link-grid,
.practical-grid,
.community-card-grid,
.next-step-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-card-grid article,
.warning-grid article,
.checklist-grid article,
.practical-grid article,
.community-card-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.info-card-grid span,
.practical-grid span {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.info-card-grid h3,
.warning-grid h3,
.checklist-grid h3,
.practical-grid h3,
.community-card-grid h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.info-card-grid p,
.warning-grid p,
.practical-grid p,
.community-card-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.practical-grid em,
.community-card-grid em {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 10px;
}

.community-block {
  background: #fffaf3;
}

.community-card-grid article {
  display: grid;
  gap: 8px;
}

.community-card-grid b {
  color: #241f1b;
}

.final-check-block {
  background: #f8f6ef;
}

.final-check-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.final-check-list label {
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 14px;
}

.final-check-list input {
  accent-color: var(--red);
  flex: 0 0 auto;
  margin-top: 2px;
}

.final-check-list span {
  color: #463f38;
  font-size: 14px;
  line-height: 1.5;
}

.next-step-grid a {
  background: #241f1b;
  border-radius: 8px;
  color: #fffefa;
  display: grid;
  gap: 7px;
  min-height: 94px;
  padding: 18px;
}

.next-step-grid span {
  color: #dccfc2;
  font-size: 13px;
  line-height: 1.55;
}

.source-summary {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.source-summary h2 {
  font-size: 19px;
}

.source-summary-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-summary-mix span {
  background: #fff3e2;
  border-radius: 999px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.source-summary-mix strong {
  margin-right: 4px;
}

.source-summary ul {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}

.block-intro {
  color: var(--muted);
  margin-bottom: 14px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list article {
  display: grid;
  gap: 16px;
  grid-template-columns: 92px 1fr;
  position: relative;
}

.timeline-list time {
  align-self: start;
  background: #fff3e2;
  border-radius: 999px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.timeline-list article > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.timeline-list h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.timeline-list em {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  margin-top: 8px;
}

.checklist-grid label {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 11px 0;
}

.checklist-grid label:first-of-type {
  border-top: 0;
}

.checklist-grid input {
  accent-color: var(--red);
  flex: 0 0 auto;
  margin-top: 2px;
}

.checklist-grid span {
  color: #463f38;
  font-size: 14px;
  line-height: 1.5;
}

.warning-grid article {
  background: #fff8ee;
}

.useful-link-grid a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 86px;
  padding: 16px;
}

.useful-link-grid a.no-thumb {
  grid-template-columns: 1fr;
}

.useful-link-grid img {
  aspect-ratio: 1;
  border-radius: 6px;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.useful-link-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.useful-link-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.useful-link-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rich-data-table {
  min-width: 720px;
}

.soon-popover {
  background: #241f1b;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(30, 22, 18, 0.2);
  color: #fffefa;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, -6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  z-index: 2000;
}

.soon-popover::after {
  border: 6px solid transparent;
  border-top-color: #241f1b;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.soon-popover.visible {
  opacity: 1;
  transform: translate(-50%, -12px);
}

.asset-card.disabled {
  opacity: 0.72;
}

.masonry-load {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 66px;
}

.masonry-load i {
  animation: spin 0.9s linear infinite;
  border: 2px solid #e8ddd0;
  border-top-color: var(--red);
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.masonry-load.done {
  color: #9b9288;
  gap: 12px;
}

.masonry-load.done span {
  background: var(--line);
  height: 1px;
  width: 72px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.source-box {
  background: #f7fafc;
  margin-top: 8px;
}

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

.source-list a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.source-list span,
.empty {
  color: var(--muted);
}

.portal-loading,
.portal-error {
  padding: 32px;
}

.portal-error a {
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .hero-board,
  .card-grid,
  .dense-grid,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-subscribe {
    grid-template-columns: 1fr;
  }

  .footer-app {
    align-items: flex-start;
    display: grid;
  }

  .masonry-grid {
    column-count: 2;
  }

  .hero-main,
  .hero-feature {
    grid-column: span 1;
  }

  .hero-side,
  .detail-head,
  .detail-content,
  .fact-strip {
    grid-column: 1 / -1;
  }

  .detail-aside {
    grid-column: 1 / -1;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 720px) {
  .portal-header {
    position: static;
  }

  .brand-row,
  .hero-board,
  .card-grid,
  .dense-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .footer-subscribe,
  .footer-app,
  .footer-links {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-subscribe-form {
    grid-template-columns: 1fr;
  }

  .footer-subscribe-form input,
  .footer-subscribe-form button {
    border-radius: 6px;
  }

  .footer-actions {
    display: grid;
    width: 100%;
  }

  .footer-actions a {
    text-align: center;
  }

  .masonry-grid {
    column-count: 1;
  }

  .fact-strip,
  .quick-check-grid,
  .example-grid,
  .pitfall-list,
  .asset-grid,
  .info-card-grid,
  .warning-grid,
  .checklist-grid,
  .useful-link-grid,
  .practical-grid,
  .community-card-grid,
  .next-step-grid,
  .final-check-list {
    grid-template-columns: 1fr;
  }

  .useful-link-grid a {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 14px;
  }

  .useful-link-grid img {
    height: 68px;
    width: 68px;
  }

  .rich-media-strip {
    display: flex;
    gap: 10px;
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding-left: 18px !important;
    padding-right: 18px;
    scroll-snap-type: x mandatory;
  }

  .rich-media-strip figure {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .rich-media-strip figure.featured img,
  .rich-media-strip img {
    aspect-ratio: 4 / 3;
  }

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

  .timeline-list article {
    grid-template-columns: 1fr;
  }

  .timeline-list time {
    justify-self: start;
  }

  .detail-head,
  .detail-content,
  .detail-aside {
    padding: 18px;
  }

  .detail-head h1 {
    font-size: 29px;
  }

  .detail-cover.cover {
    aspect-ratio: 16 / 10;
  }

  .detail-content section {
    padding: 20px 0;
  }

  .document-card-list {
    display: none;
  }

  .document-mobile-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .document-mobile-card dl {
    display: grid;
    gap: 9px;
    margin: 0;
  }

  .document-mobile-card div {
    display: grid;
    gap: 3px;
  }

  .document-mobile-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .document-mobile-card dd {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
  }

  .masonry-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .masonry-grid .portal-card {
    margin-bottom: 12px;
  }

  .masonry-load.done span {
    width: 46px;
  }

  .brand-row {
    gap: 10px;
    padding: 14px;
  }

  .portal-nav,
  .portal-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-link {
    justify-self: start;
  }

  .hero-main {
    min-height: 0;
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .section-title {
    align-items: start;
    display: grid;
  }

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

  .portal-search input,
  .portal-search button {
    border-radius: 6px;
  }
}

@media (max-width: 390px) {
  .masonry-grid {
    column-count: 1;
  }
}
