/* Offshority content site — hand-written CSS reproducing the offshority.com (Tailwind + shadcn/ui) look.
   Light theme only. One file, no external requests. */

:root {
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text: #0a0a0a;
  --heading: #111827;      /* gray-900 */
  --gray-700: #374151;
  --secondary: #4b5563;    /* gray-600 */
  --muted: #6b7280;        /* gray-500 */
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --bg: #f9fafb;           /* gray-50 */
  --surface: #fff;
  --border: #e5e5e5;
  --border-2: #e5e7eb;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  --yellow-50: #fefce8;
  --yellow-400: #facc15;
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-800: #92400e;
  --amber-200: #fde68a;

  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-800: #991b1b;

  --gray-800: #1f2937;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);

  --container: 80rem;
  --gutter: 1rem;
  --header-h: 64px;
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--blue-600);
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--blue-600); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------------ buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--gray-100); color: var(--text); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-sm); padding: 2px 10px;
  font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid transparent;
}
.badge-blue { background: var(--blue-100); color: var(--blue-800); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-red { background: var(--red-100); color: var(--red-800); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--heading); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-xl);
  background: var(--blue-600); color: #fff;
}
.logo-word { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.logo-accent { color: var(--blue-600); }

.main-nav { display: none; flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: nowrap; }
.main-nav a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--gray-700); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-600); text-decoration: none; }
.main-nav a.active { background: var(--blue-50); }
.header-actions { display: none; gap: 8px; margin-left: auto; }

.mnav { margin-left: auto; }
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  color: var(--gray-700); cursor: pointer;
}
.mnav-toggle:hover { background: var(--gray-100); }
.mnav-close { display: none; }
.mnav[open] .mnav-open { display: none; }
.mnav[open] .mnav-close { display: inline-flex; }
.mnav-open, .mnav-close { display: inline-flex; }
.mnav:not([open]) .mnav-close { display: none; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mnav-panel ul { list-style: none; }
.mnav-panel nav a {
  display: block; padding: 12px 8px; font-size: 16px; font-weight: 500; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mnav-panel nav a.active, .mnav-panel nav a:hover { color: var(--blue-600); text-decoration: none; }
.mnav-actions { display: grid; gap: 10px; margin-top: 16px; }
.mnav-actions .btn { height: 44px; }

@media (min-width: 1200px) {
  .main-nav { display: block; }
  .mnav { display: none; }
}
@media (min-width: 640px) {
  .header-actions { display: flex; }
  .mnav { margin-left: 0; }
  .mnav-actions { display: none; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
  .main-nav a { font-size: 14px; padding: 8px; }
  .header-inner { gap: 16px; }
}
@media (min-width: 640px) and (max-width: 1199.98px) {
  .header-actions { margin-left: auto; }
}

/* ------------------------------------------------------------------ breadcrumbs */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs [aria-current] { color: var(--heading); font-weight: 500; }
.crumb-sep { color: var(--gray-400); }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: inherit; position: relative;
  transition: box-shadow .2s, border-color .2s; }
.card-link:hover { box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; border-color: var(--border-2); }
.card-link:hover .card-title { color: var(--blue-600); }
.card-title { font-size: 18px; font-weight: 700; color: var(--heading); line-height: 1.35; }
.card-text { font-size: 15px; color: var(--secondary); line-height: 1.6; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--blue-600); }
.card-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card-grid-compact .card { padding: 18px 20px; }
.card-grid-compact .card-title { font-size: 16px; }
@media (min-width: 1024px) { .card-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* .card.card-featured (two classes): the top padding must also win over `.card-grid-compact .card`,
   otherwise the ribbon covers the first line of the title */
.card.card-featured {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--yellow-400), var(--shadow-sm);
  background: linear-gradient(135deg, var(--yellow-50), var(--amber-50));
  padding-top: 44px;
  overflow: hidden;
}
.card-featured:hover { box-shadow: 0 0 0 2px var(--yellow-400), var(--shadow-lg); }
.ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--yellow-400), var(--amber-500));
  color: #fff; text-transform: uppercase; letter-spacing: .06em;
  font-size: 12px; font-weight: 700; text-align: center; padding: 4px 8px;
  text-shadow: 0 1px 1px rgba(146, 64, 14, .55);
}
/* contrast: the ribbon text is on yellow→amber; a dark text shadow keeps it legible, and the
   same label is also exposed as plain text for assistive tech */

/* ------------------------------------------------------------------ hero (home) */
.hero { background: #fff; border-bottom: 1px solid var(--border-2); padding: 4rem 0; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; max-width: 56rem; }
.hero h1 .hl { color: var(--yellow-400); }
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--secondary); max-width: 48rem; margin-top: 20px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; }
.hero-box {
  margin-top: 32px; width: 100%; max-width: 48rem;
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
.hero-box-title { font-weight: 700; color: var(--heading); font-size: 18px; }
.hero-box-text { color: var(--secondary); font-size: 15px; margin-top: 4px; }
.hero-box-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 768px) {
  .hero-box { flex-direction: row; text-align: left; justify-content: space-between; }
  .hero-box-actions { flex-wrap: nowrap; }
}

/* ------------------------------------------------------------------ home sections */
.home-wrap { padding-block: 48px 16px; display: grid; gap: 56px; }
.home-section > h2, .section-head h2 { font-size: 24px; margin-bottom: 20px; }
@media (min-width: 768px) { .home-section > h2, .section-head h2 { font-size: 30px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; margin-bottom: 20px; }
.section-card .section-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-xl); background: var(--blue-50); color: var(--blue-600);
}
.card-grid-sections { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid-sections { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.region + .region { margin-top: 28px; }
.region-title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }

.sellers {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  background: var(--blue-600); color: #fff; border-radius: var(--radius-xl); padding: 32px 24px;
}
.sellers h2 { color: #fff; font-size: 24px; margin: 4px 0 8px; }
.sellers p { color: var(--blue-50); max-width: 40rem; }
.sellers-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-100) !important; }
@media (min-width: 768px) { .sellers { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; } }
.home-about, .home-faq { max-width: 52rem; width: 100%; margin-inline: auto; }

/* ------------------------------------------------------------------ article layout */
.page-wrap { padding-block: 20px 48px; }
.article-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.article-layout.has-toc .article { max-width: none; }
.article { padding: 24px 20px; max-width: 52rem; width: 100%; margin-inline: auto; }
@media (min-width: 640px) { .article { padding: 40px 48px; } }
@media (min-width: 1024px) {
  .article-layout.has-toc { grid-template-columns: minmax(0, 52rem) 16rem; justify-content: center; }
  .article-layout.has-toc .article { margin: 0; }
}
.article > * + * { margin-top: 32px; }
.article-header h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; }
@media (min-width: 768px) { .article-header h1 { font-size: 36px; } }
.eyebrow { margin-bottom: 14px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.byline .icon { color: var(--gray-400); }
.byline a { color: var(--secondary); text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: 3px; }
.byline a:hover { color: var(--blue-600); }
.aka { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--secondary); }

/* section headings with anchors (body + page blocks) */
.anchor {
  margin-left: .35em; color: var(--gray-300); font-weight: 500; text-decoration: none;
  opacity: 0; transition: opacity .15s;
}
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--blue-600); text-decoration: none; }
@media (hover: none) { .anchor { opacity: .6; } }

.in-short {
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-xl); padding: 20px 22px;
}
.in-short h2, .takeaways h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-800); margin-bottom: 8px; }
.in-short .lead { font-size: 18px; line-height: 1.65; color: var(--heading); }
.in-short dfn { font-style: normal; font-weight: 700; }
.takeaways { border: 1px solid var(--border-2); border-radius: var(--radius-xl); padding: 20px 22px; }
.takeaways h2 { color: var(--gray-700); }
.takeaways ul { list-style: none; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; color: var(--text); }
.takeaways .icon { color: var(--green-600); margin-top: 3px; }

.key-facts > h2, .faq > h2, .sources > h2, .related > h2 { font-size: 22px; margin-bottom: 16px; }
.facts-grid {
  display: grid; grid-template-columns: 1fr; margin: 0;
  border: 1px solid var(--border-2); border-radius: var(--radius-xl); overflow: hidden; background: #fff;
}
.fact { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--border-2); }
.fact:first-child { border-top: 0; }
.fact dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.fact dd { margin: 0; color: var(--heading); font-weight: 500; }
@media (min-width: 640px) {
  .fact { grid-template-columns: 14rem minmax(0, 1fr); gap: 16px; padding: 12px 20px; }
  .fact dt { font-size: 14px; }
}
.facts-cta {
  margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px dashed var(--gray-300); border-radius: var(--radius-xl); padding: 16px 18px;
}
.facts-cta p { color: var(--secondary); font-size: 15px; }
.facts-cta .btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 16px; text-align: left; }
@media (min-width: 768px) { .facts-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* table of contents */
.toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border-2); color: var(--secondary); font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--blue-600); border-left-color: var(--blue-600); text-decoration: none; background: var(--blue-50); }
.toc-inline { border: 1px solid var(--border-2); border-radius: var(--radius-xl); padding: 16px 18px; }
.toc-side { display: none; }
@media (min-width: 1024px) {
  .toc-inline { display: none; }
  .toc-side { display: block; }
  .toc-sticky { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}

/* ------------------------------------------------------------------ prose */
.prose { color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; line-height: 1.3; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 19px; line-height: 1.35; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.anchor { text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--heading); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--gray-100); border-radius: 4px; padding: .1em .35em; }
.prose pre { background: var(--gray-800); color: #f9fafb; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gray-300); color: var(--secondary); }
.prose hr { border: 0; border-top: 1px solid var(--border-2); margin: 2em 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-2); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 600; color: var(--heading); background: var(--bg); border-bottom: 1px solid var(--border-2); }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-2); border-right: 1px solid var(--border-2); }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 600; color: var(--heading); background: var(--bg); white-space: nowrap; }
@media (max-width: 639.98px) { .prose td { min-width: 9rem; } }

.callout { margin: 0; border-radius: var(--radius-xl); padding: 14px 18px; border: 1px solid; }
.callout > * + * { margin-top: .6em; }
.callout-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.callout-note { background: var(--blue-50); border-color: var(--blue-200); }
.callout-note .callout-label { color: var(--blue-800); }
.callout-tip { background: #f0fdf4; border-color: #bbf7d0; }
.callout-tip .callout-label { color: var(--green-800); }
.callout-warning { background: var(--amber-50); border-color: var(--amber-200); }
.callout-warning .callout-label { color: var(--amber-800); }

/* ------------------------------------------------------------------ FAQ, sources, related */
.faq-item { border: 1px solid var(--border-2); border-radius: var(--radius-xl); background: #fff; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer; border-radius: var(--radius-xl);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover h3 { color: var(--blue-600); }
.faq-item h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.faq-chevron { color: var(--muted); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-answer { padding: 0 18px 16px; color: var(--secondary); line-height: 1.7; }
.faq-answer p + p { margin-top: .7em; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

.sources ol { padding-left: 1.3em; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.sources a { text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 3px; }

.related-grid { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px;
  border: 1px solid var(--border-2); border-radius: var(--radius-xl); color: inherit; background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.related-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.related-title { font-weight: 600; color: var(--heading); }
.related-card:hover .related-title { color: var(--blue-600); }
.related-summary { font-size: 14px; color: var(--secondary); line-height: 1.55; }

/* ------------------------------------------------------------------ hub */
.hub-header { padding: 28px 22px; }
@media (min-width: 640px) { .hub-header { padding: 40px 48px; } }
.hub-header h1 { font-size: 30px; letter-spacing: -.015em; }
@media (min-width: 768px) { .hub-header h1 { font-size: 40px; } }
.hub-lead { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--secondary); max-width: 48rem; }
.jump { margin-top: 20px; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; min-width: 36px; height: 32px; justify-content: center;
  padding: 0 12px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-800);
  font-size: 14px; font-weight: 600; border: 1px solid var(--blue-100);
}
.chip-link:hover { background: var(--blue-100); text-decoration: none; color: var(--blue-800); }
.hub-group { margin-top: 36px; }
.hub-group > h2 { font-size: 22px; margin-bottom: 16px; }
.hub-group:first-of-type { margin-top: 28px; }
.empty { margin-top: 28px; color: var(--secondary); }
.term-list { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .term-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.term-list a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 18px; background: #fff; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.term-list a:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.term-name { font-weight: 600; color: var(--heading); }
.term-list a:hover .term-name { color: var(--blue-600); }
.term-summary { font-size: 14px; color: var(--secondary); line-height: 1.55; }
.hub-about { margin-top: 40px; }

/* ------------------------------------------------------------------ sitemap & 404 */
.sitemap-group h2 { font-size: 20px; margin-bottom: 10px; }
.sitemap-group ul { padding-left: 1.2em; display: grid; gap: 4px; }
.notfound-code { font-size: 64px; font-weight: 800; color: var(--blue-600); line-height: 1; margin-bottom: 12px; }
.notfound-actions { margin-top: 28px; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { background: #fff; border-top: 1px solid var(--border-2); padding: 48px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; }
.cta-band h2 { font-size: 24px; }
.cta-band p { color: var(--secondary); margin-top: 8px; max-width: 44rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } .cta-actions { flex-wrap: nowrap; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--gray-800); color: #fff; padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-brand p { color: var(--gray-400); margin-top: 16px; max-width: 32rem; line-height: 1.65; font-size: 15px; }
.logo-footer, .logo-footer:hover { color: #fff; }
.logo-footer .logo-accent { color: var(--blue-400); }
.footer-title { font-weight: 600; font-size: 15px; margin-bottom: 12px; color: #fff; }
.footer-title-2 { margin-top: 24px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--gray-400); font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--gray-800), 0 0 0 4px var(--blue-400); }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--gray-400); font-size: 14px; }
.lang-switch ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lang-switch [aria-current] { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--gray-700); margin-top: 32px; padding-top: 24px; display: grid; gap: 10px; font-size: 14px; color: var(--gray-400); }
.disclaimer { max-width: 60rem; line-height: 1.6; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 639.98px) {
  .in-short, .takeaways { padding: 16px; }
  .in-short .lead { font-size: 17px; }
  .prose { font-size: 16px; }
  .hero { padding: 3rem 0; }
  .hero-sub { font-size: 18px; }
  .hero-box-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ forms (request / sell) */
.form { display: grid; gap: 16px; margin: 20px 0 28px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.form input[type="text"], .form input[type="email"], .form input[type="number"], .form textarea {
  width: 100%; padding: 9px 12px; font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); }
.form .form-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .form-check input { margin-top: 3px; flex: none; }
.form button { justify-self: start; cursor: pointer; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { display: none; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.form-notice:target { display: block; }
.form-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ------------------------------------------------------------------ catalog (companies for sale) */
.listing-price { font-size: 18px; font-weight: 700; color: var(--green-800); }
.listing-price-lg { font-size: 26px; }
.listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.listing-seller-title { margin-top: 12px; color: var(--secondary); line-height: 1.6; overflow-wrap: anywhere; }
.listing-label { font-weight: 600; color: var(--muted); }
.listing-card .card-title, .listing-card .card-text { overflow-wrap: anywhere; }
.fact dd { overflow-wrap: anywhere; }
.catalog-request { margin-top: 20px; }
.catalog-note { margin-top: 36px; color: var(--secondary); line-height: 1.6; }
.for-sale, .enquire { margin-top: 32px; }
.for-sale > h2, .enquire > h2 { font-size: 22px; margin-bottom: 16px; }
.for-sale-more { margin-top: 14px; }
.enquire-text { color: var(--secondary); line-height: 1.6; }
.hub-header .form-notice { margin-top: 16px; }
