.seo-page {
  background:
    radial-gradient(circle at 92% 0, rgba(29, 90, 77, 0.07), transparent 28rem),
    var(--paper);
}

.seo-header {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1100px);
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(21, 45, 41, 0.12);
}

.seo-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.seo-nav a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.seo-nav a:hover {
  color: var(--red-dark);
}

.seo-header-action {
  padding: 8px 12px;
  color: #fff8ec;
  background: var(--ink);
  border-radius: 999px;
}

.seo-header-action:hover {
  color: #fff8ec;
  background: var(--green);
}

.seo-main {
  width: min(calc(100% - 64px), 1100px);
  margin: 0 auto;
  padding: 28px 0 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.breadcrumbs a {
  color: var(--green);
}

.seo-hero {
  max-width: 900px;
  padding: 34px 0 32px;
}

.seo-hero-with-flag {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 100%;
}

.seo-flag {
  display: block;
  width: 72px;
  height: 52px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(22, 48, 43, 0.08);
}

.seo-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-hero h1 {
  max-width: 900px;
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.seo-hero .lead {
  max-width: 790px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.updated-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 17px;
  color: var(--muted);
  font-size: 11px;
}

.updated-line::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(24, 45, 38, 0.05);
}

.summary-cell {
  min-height: 104px;
  padding: 19px 21px;
  border-right: 1px solid var(--line);
}

.summary-cell:last-child {
  border-right: 0;
}

.summary-cell span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-cell strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
}

.summary-cell small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.guide-content {
  min-width: 0;
}

.guide-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

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

.guide-content h2 {
  margin: 0 0 11px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.guide-content h3 {
  margin: 22px 0 7px;
  font-size: 15px;
  font-weight: 700;
}

.guide-content p,
.guide-content li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

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

.guide-content li {
  margin-bottom: 7px;
}

.notice {
  margin: 18px 0;
  padding: 15px 17px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 9px 9px 0;
  font-size: 12px;
  line-height: 1.6;
}

.info-table {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.info-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 125px;
  gap: 16px;
  align-items: center;
  min-height: 57px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}

.info-row:first-child {
  border-top: 0;
}

.info-row > strong {
  font-size: 11px;
  font-weight: 600;
}

.info-row > span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.info-row > em {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.status-good {
  color: var(--green) !important;
}

.status-note {
  color: var(--amber) !important;
}

.status-bad {
  color: var(--red-dark) !important;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.check-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.guide-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.sidebar-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.sidebar-links a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-links a::after {
  content: "→";
  color: var(--red);
}

.sidebar-cta {
  color: #fff8ec;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.sidebar-cta h2 {
  color: #fff8ec;
}

.sidebar-cta p {
  color: rgba(255, 248, 236, 0.68);
}

.sidebar-cta a {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 10px;
  color: #fff8ec;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}

.hub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hub-link {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hub-link:hover {
  border-color: rgba(217, 74, 54, 0.35);
}

.hub-link img {
  width: 31px;
  height: 21px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.hub-link strong {
  display: block;
  font-size: 12px;
}

.hub-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.hub-link em {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.printable-guide {
  margin: 0 0 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(24, 45, 38, 0.055);
}

.printable-heading {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 23px 25px 19px;
  border-bottom: 1px solid var(--line);
}

.printable-heading > div:first-child > span {
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.printable-heading h2 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.07;
}

.printable-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.print-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.print-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff8ec;
  background: var(--red);
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(217, 74, 54, 0.2);
}

.print-actions button:hover {
  background: var(--red-dark);
}

.print-actions small {
  max-width: 210px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.guide-numbered-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-numbered-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  min-height: 114px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-numbered-list li:nth-child(even) {
  border-right: 0;
}

.guide-numbered-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.print-number {
  color: var(--red);
  font-family: var(--mono);
  font-size: 14px;
}

.guide-numbered-list h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.guide-numbered-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.printable-source {
  padding: 15px 22px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.printable-source strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 10px;
}

.printable-source p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 13px 2px;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: 0;
  padding: 0 32px 17px 2px;
}

.seo-footer {
  border-top: 1px solid rgba(21, 45, 41, 0.12);
}

.seo-footer-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1100px);
  min-height: 78px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.seo-footer-inner p {
  max-width: 650px;
  margin: 0;
}

.seo-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-footer-inner a {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .seo-header,
  .seo-main,
  .seo-footer-inner {
    width: min(calc(100% - 36px), 1100px);
  }

  .seo-nav a:nth-child(-n + 2) {
    display: none;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .info-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .info-row > em {
    display: none;
  }
}

@media (max-width: 580px) {
  .seo-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .seo-nav {
    width: 100%;
    justify-content: space-between;
  }

  .seo-nav a {
    font-size: 11px;
  }

  .seo-nav a:nth-child(1) {
    display: inline-flex;
  }

  .seo-nav a:nth-child(2),
  .seo-nav a:nth-child(3) {
    display: none;
  }

  .seo-main {
    padding-top: 20px;
  }

  .seo-hero {
    padding: 25px 0;
  }

  .seo-hero-with-flag {
    display: block;
  }

  .seo-flag {
    width: 60px;
    height: 43px;
    margin-bottom: 17px;
  }

  .seo-hero h1 {
    font-size: 36px;
  }

  .seo-hero .lead {
    font-size: 14px;
  }

  .summary-strip {
    display: block;
  }

  .printable-heading {
    display: block;
    padding: 19px 17px 16px;
  }

  .printable-heading h2 {
    font-size: 25px;
  }

  .print-actions {
    align-items: flex-start;
    margin-top: 14px;
  }

  .print-actions small {
    text-align: left;
  }

  .guide-numbered-list {
    display: block;
  }

  .guide-numbered-list li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-numbered-list li:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .summary-cell {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-cell:last-child {
    border-bottom: 0;
  }

  .guide-content h2 {
    font-size: 27px;
  }

  .info-row {
    display: block;
    padding: 14px;
  }

  .info-row > span {
    display: block;
    margin-top: 4px;
  }

  .checklist,
  .hub-list,
  .guide-sidebar {
    grid-template-columns: 1fr;
  }

  .seo-footer-inner {
    display: block;
    padding: 18px 0;
  }

  .seo-footer-inner nav {
    margin: 9px 0;
  }
}

/* Keep all informational text comfortably readable, including micro-labels. */
.breadcrumbs {
  font-size: 13px;
}

.seo-nav a {
  font-size: 15px;
}

.language-picker summary {
  font-size: 15px;
}

.language-menu a {
  font-size: 16px;
}

.summary-cell span,
.summary-cell small {
  font-size: 13px;
}

.updated-line {
  font-size: 14px;
}

.info-row > strong,
.info-row > span {
  font-size: 14px;
}

.info-row > em {
  font-size: 12px;
}

.check-item strong {
  font-size: 15px;
}

.check-item span {
  font-size: 14px;
}

.faq-list summary {
  font-size: 16px;
}

.faq-list details p {
  font-size: 15px;
}

.sidebar-card h2 {
  font-size: 16px;
}

.sidebar-card p,
.sidebar-links a {
  font-size: 14px;
}

.sidebar-cta a {
  font-size: 13px;
}

.hub-link strong {
  font-size: 15px;
}

.hub-link small {
  font-size: 13px;
}

.hub-link em {
  font-size: 12px;
}

.printable-heading > div:first-child > span {
  font-size: 14px;
}

.printable-heading p {
  font-size: 15px;
}

.print-actions button {
  font-size: 15px;
}

.print-actions small {
  font-size: 13px;
}

.guide-numbered-list h3 {
  font-size: 16px;
}

.guide-numbered-list p {
  font-size: 14px;
}

.print-number {
  font-size: 17px;
}

.printable-source strong,
.printable-source p {
  font-size: 13px;
}

.seo-footer-inner {
  font-size: 13px;
}

.seo-page .residence-panel {
  grid-template-columns: minmax(0, 1fr) 290px;
  margin: 0 0 28px;
  padding: 18px 20px;
}

.seo-page .official-forms-card {
  margin: 0 0 28px;
}

@media (max-width: 580px) {
  .seo-page .residence-panel {
    grid-template-columns: 1fr;
    margin: 0 0 22px;
    padding: 16px;
  }

  .seo-page .official-forms-card {
    margin: 0 0 22px;
  }
}

@page {
  size: A4;
  margin: 15mm;
}

@media print {
  body.seo-page {
    color: #111;
    background: #fff;
    font-size: 12pt;
  }

  .seo-header,
  .seo-main > .breadcrumbs,
  .seo-hero,
  .summary-strip,
  .guide-layout,
  .seo-footer,
  .print-actions {
    display: none !important;
  }

  .printable-guide {
    display: block !important;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .printable-heading {
    display: block;
    padding: 0 0 12mm;
    border-bottom: 1px solid #bbb;
  }

  .printable-heading h2 {
    margin: 4mm 0 2mm;
    font-size: 26pt;
  }

  .printable-heading p {
    color: #444;
    font-size: 10pt;
  }

  .guide-numbered-list {
    display: block;
  }

  .guide-numbered-list li {
    display: grid;
    grid-template-columns: 10mm 1fr;
    gap: 5mm;
    min-height: 0;
    padding: 5mm 0;
    border: 0;
    border-bottom: 1px solid #ddd;
    break-inside: avoid;
  }

  .guide-numbered-list h3 {
    margin-bottom: 1.5mm;
    font-size: 12pt;
  }

  .guide-numbered-list p {
    color: #222;
    font-size: 10pt;
    line-height: 1.5;
  }

  .print-number {
    color: #b63a2a;
    font-size: 10pt;
  }

  .printable-source {
    margin-top: 7mm;
    padding: 5mm 0 0;
    background: transparent;
    border-top: 1px solid #bbb;
  }

  .printable-source strong,
  .printable-source p {
    color: #333;
    font-size: 8pt;
  }
}
