[hidden] { display: none !important; }

:root {
  --bg: #ffffff;
  --surface: #f6f8f6;
  --ink: #16201b;
  --muted: #667169;
  --line: #e3e7e2;
  --line-strong: #c9d2c7;
  --accent: #0b6951;
  --accent-dark: #075642;
  --accent-soft: #e6f1ec;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
.page-width { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 20px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.site-header .page-width {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
}
.wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); }

/* Hero */
.hero { padding-block: 44px 30px; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3;
}
.hero .lead { margin: 0; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.page-hero { padding-block: 44px 26px; }
.page-hero h1 {
  margin: 12px 0 14px; font-size: clamp(26px, 5.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35;
}
.page-hero .lead { margin: 0; max-width: 600px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.updated-note { margin: 10px 0 0; color: #8a938c; font-size: 12px; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 700; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 4px; color: #b7c0b5; }

/* Address tool */
.tool-wrap { padding-bottom: 40px; }
.address-tool {
  padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: 0 18px 46px rgba(11, 105, 81, 0.09);
}
.address-tool form > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.address-tool form > label span {
  display: inline-flex; margin-left: 7px; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 800; vertical-align: 1px;
}
.search-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px; border: 2px solid var(--accent-dark); border-radius: 16px; background: #fff;
}
.search-row .icon { padding-left: 6px; color: var(--accent-dark); font-size: 20px; font-weight: 800; }
.search-row input {
  flex: 1 1 160px; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 16px;
}
.search-row input::placeholder { color: #9aa39a; }
.search-row button {
  flex: 1 1 100%; height: 46px; padding-inline: 20px; border: 0; border-radius: 12px;
  background: var(--accent-dark); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer;
}
.search-row button:disabled { cursor: wait; opacity: 0.65; }
@media (min-width: 560px) {
  .search-row { flex-wrap: nowrap; height: 62px; }
  .search-row button { flex: 0 0 auto; }
}
.search-hint { margin: 9px 2px 0; color: var(--muted); font-size: 11.5px; }

.search-status { display: none; min-height: 0; margin-top: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.search-status.loading, .search-status.done, .search-status.error { display: flex; align-items: center; gap: 9px; }
.search-status.done { background: var(--accent-soft); color: var(--accent-dark); }
.search-status.error { background: var(--danger-soft); color: var(--danger); }
.spinner {
  width: 15px; height: 15px; flex: none; border: 2px solid #b9d3c9; border-top-color: var(--accent-dark);
  border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.address-results { display: grid; margin: 14px 0 0; padding: 0; list-style: none; gap: 8px; }
.address-results li {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface);
}
.address-results .field span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.address-results .field strong { font-size: 14px; font-weight: 700; word-break: break-word; }
.address-results .field code {
  color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; font-weight: 800; letter-spacing: 0.03em;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions button, .result-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; padding-inline: 13px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong);
}
.copy-btn { background: #fff; color: var(--accent-dark); }
.app-link { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); flex: 1 1 auto; }
@media (min-width: 640px) {
  .address-results li { flex-direction: row; align-items: center; gap: 16px; }
  .address-results .field { flex: 1 1 auto; min-width: 0; }
  .result-actions { flex: 0 0 auto; }
  .app-link { flex: 0 0 auto; }
}

.show-more-results {
  width: 100%; margin-top: 9px; padding-block: 11px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--accent-dark); font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.official-search-link { display: inline-flex; margin-top: 14px; color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.tool-source { margin: 18px 2px 0; padding-top: 14px; border-top: 1px solid var(--line); color: #838d84; font-size: 11px; line-height: 1.7; }
.address-tool noscript p { margin: 12px 2px 0; color: var(--danger); font-size: 12.5px; }

/* Soft app cta below tool */
.soft-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-block: 6px 44px; font-size: 13px; }
.soft-links a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.soft-links a:hover { text-decoration: underline; }

/* Explain cards */
.explain-grid { display: grid; padding-block: 40px 56px; border-top: 1px solid var(--line); gap: 16px; }
.explain-grid article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.card-number { margin: 0 0 8px; color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.explain-grid h2 { margin: 0 0 8px; font-size: 17px; }
.explain-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
@media (min-width: 640px) { .explain-grid { grid-template-columns: repeat(3, 1fr); } }

/* Generic content section */
.content-section { padding-block: 40px; }
.content-section.bordered { border-top: 1px solid var(--line); }
.content-section h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.01em; }
.content-section h3 { margin: 22px 0 8px; font-size: 16px; }
.content-section p { color: #3d453f; font-size: 15px; line-height: 1.85; }
.content-section ol, .content-section ul { padding-left: 22px; color: #3d453f; font-size: 15px; line-height: 1.85; }
.content-section li + li { margin-top: 6px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

/* Steps */
.step-list { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.step-list li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface);
}
.step-list .num {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dark); color: #fff; font-weight: 800; font-size: 14px;
}
.step-list h3 { margin: 2px 0 6px; font-size: 15px; }
.step-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* Code structure table */
.code-structure { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 13.5px; overflow-x: auto; display: block; }
.code-structure thead, .code-structure tbody, .code-structure tr { display: table; width: 100%; table-layout: fixed; }
.code-structure th, .code-structure td { padding: 10px 8px; border: 1px solid var(--line); text-align: center; }
.code-structure th { background: var(--surface); font-weight: 800; font-size: 11px; color: var(--muted); }
.code-structure td { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--accent-dark); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-list details {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  font-size: 14.5px; font-weight: 750; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent-dark); font-size: 16px; flex: none; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.small-note { margin-top: 20px; color: #8a938c; font-size: 12px; line-height: 1.8; }

/* Operator table */
.operator-table { display: grid; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.operator-table div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 13px 16px; font-size: 13.5px; }
.operator-table div:not(:last-child) { border-bottom: 1px solid var(--line); }
.operator-table dt { color: var(--muted); font-weight: 700; }
.operator-table dd { margin: 0; }

/* App cta block */
.app-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-block: 8px 0; padding: 26px 22px; border-radius: var(--radius-lg); background: var(--ink); color: #fff;
}
.app-cta h2 { margin: 4px 0 6px; font-size: 20px; }
.app-cta p { margin: 0; color: #c7d0c9; font-size: 13.5px; max-width: 420px; }
.app-cta .button {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; margin-top: 30px; background: var(--surface); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--accent-dark); }
.footer-meta { color: #8a938c; font-size: 11.5px; line-height: 1.9; }
.footer-meta a { color: #75817a; }

@media (max-width: 375px) {
  .page-width { padding-inline: 16px; }
  .hero, .page-hero { padding-block: 32px 22px; }
  .address-tool { padding: 16px; border-radius: 18px; }
  .app-cta { padding: 20px 18px; }
}
