/* Topic-specific guide layouts. Intentionally does not change the homepage. */
.guide-opening {
  padding-block: 44px;
  background: #fff;
  border-bottom: 1px solid #dce5ed;
}
.guide-opening .container,
.guide-opening .container > *,
.formal-heading > *,
.foreign-heading > *,
.offshore-heading > * { min-width: 0; }
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  margin-bottom: 24px;
  color: #526272;
  font-size: 12px;
  line-height: 1.6;
}
.guide-breadcrumb a { color: #31526d; text-decoration: underline; text-underline-offset: 4px; }
.guide-breadcrumb a:hover { color: #005ca7; }
.guide-breadcrumb svg { width: 13px; height: 13px; color: #7c8c9a; flex-shrink: 0; }
.guide-opening h1 {
  max-width: 880px;
  margin: 0 0 22px;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #101820;
  text-wrap: balance;
}
.guide-intro {
  max-width: 69ch;
  margin-bottom: 0;
  color: #455564;
  font-size: 16px;
  line-height: 1.8;
}
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; align-items: center; }
.guide-actions .btn,
.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #bfd0de;
  border-radius: 5px;
  color: #005ca7;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  text-decoration: none;
}
.guide-actions .btn-blue { color: #fff; border-color: #0072ce; background: #0072ce; }
.guide-actions .btn:hover,
.guide-link:hover { color: #004b88; border-color: #0072ce; background: #eef6fc; transform: none; }
.guide-actions .btn-blue:hover { color: #fff; background: #005fae; }
.guide-actions svg,
.guide-link svg { width: 17px; height: 17px; flex-shrink: 0; }

:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-section {
  border-top: 0;
  padding-block: 42px 56px;
}
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-layout { min-width: 0; }
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .prose { min-width: 0; }
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .toc {
  top: 108px;
  padding-right: 14px;
  max-height: calc(100dvh - 138px);
}
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .prose > h2 {
  margin-top: 36px;
  padding-top: 22px;
}
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .sources-section { padding-block: 36px; }
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .sources-layout h2 { font-size: 25px; line-height: 1.3; }
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .sources-layout p { font-size: 12px; line-height: 1.8; }
:is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .source-list { gap: 7px 25px; }

/* Estonia: a formal reference document with a concise factual summary. */
.guide-opening--estonia { border-bottom: 1px solid #cdd6de; }
.formal-heading { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 48px; }
.page-estonia .guide-opening h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 4.5vw, 61px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.035em;
  max-width: 790px;
}
.page-estonia .guide-intro { max-width: 67ch; font-size: 15px; }
.formal-summary { border: 1px solid #d8e0e7; border-top: 3px solid #182b3c; padding: 22px 23px; background: #f8fafb; }
.formal-summary h2 { margin: 0 0 17px; font-size: 17px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; }
.formal-summary dl { margin: 0; }
.formal-summary dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding-block: 11px; border-top: 1px solid #dce4eb; }
.formal-summary dt { color: #546373; font-size: 11px; line-height: 1.7; }
.formal-summary dd { margin: 0; color: #172c3e; font-size: 12px; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
.page-estonia .article-layout { grid-template-columns: minmax(0, 1fr) 216px; gap: 58px; }
.page-estonia .prose > h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 31px; font-weight: 400; line-height: 1.3; letter-spacing: -.025em; border-top-color: #cfd9e2; }
.page-estonia .toc a { border-left-width: 1px; color: #526170; }
.page-estonia .toc a:hover,
.page-estonia .toc a.active { border-left-color: #0072ce; color: #005ba3; background: #f2f6f9; }
.page-estonia .editorial-box,
.page-estonia .article-table-wrap,
.page-estonia .prose details { border-radius: 4px; box-shadow: none; }
.page-estonia .takeaway-box { border: 1px solid #cad8e4; border-left: 3px solid #0072ce; background: #edf4fa; }
.page-estonia .takeaway-box::after { display: none; }
.page-estonia .prose .takeaway-box h3,
.page-estonia .prose .takeaway-box strong { color: #182f43; }
.page-estonia .prose .takeaway-box p { color: #3f5363; }
.page-estonia .prose .takeaway-box a { color: #005fae; text-decoration-color: #005fae; }
.page-estonia .takeaway-box a:focus-visible { outline-color: #0072ce; }
.page-estonia .article-table thead th { background: #e8eef3; color: #172c3d; border-bottom: 1px solid #cbd6df; }
.page-estonia .article-table tbody tr:nth-child(even) { background: #f8fafb; }
.page-estonia .split-item { border-radius: 3px; border-top-width: 2px; }
.page-estonia .registry-section { background: #f7f9fb; padding-block: 39px; border-top: 1px solid #d4dee7; }
.page-estonia .registry-section .section-head { gap: 35px; align-items: start; margin-bottom: 23px; }
.page-estonia .registry-section .section-head h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 31px; line-height: 1.25; letter-spacing: -.025em; font-weight: 400; }
.page-estonia .registry-section .section-head p { font-size: 12px; max-width: 420px; }
.page-estonia .registry-section .table-shell { border-radius: 4px; box-shadow: none; }
.page-estonia .registry-section .table-shell th { background: #e7edf2; }
.page-estonia .sources-section { background: #f3f6f8; }

/* Foreign operators: a text-led explainer with the contents on the right. */
.guide-opening--foreign { background: #fafbfc; }
.foreign-heading { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 52px; }
.page-foreign .guide-opening h1 { max-width: 820px; }
.border-note { padding: 8px 0 8px 25px; border-left: 3px solid #0072ce; }
.border-note h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.border-note p { margin: 0; color: #506170; font-size: 13px; line-height: 1.85; }
.page-foreign .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 58px; }
.page-foreign .article-layout > .toc { padding-right: 0; padding-left: 13px; border-left: 1px solid #e0e7ed; }
.page-foreign .article-layout > .prose { max-width: 900px; }
.page-foreign .toc a { border-left: 0; padding: 8px 10px; border-radius: 3px; }
.page-foreign .toc a:hover,
.page-foreign .toc a.active { background: #eef4f8; color: #005fae; }
.page-foreign .prose > h2 { border-top: 0; padding-top: 0; margin-top: 35px; font-size: 29px; }
.page-foreign .takeaway-box { background: #fff; border: 1px solid #d4e1ec; border-left: 4px solid #0072ce; }
.page-foreign .takeaway-box::after { display: none; }
.page-foreign .prose .takeaway-box h3,
.page-foreign .prose .takeaway-box strong { color: #172b3c; }
.page-foreign .prose .takeaway-box p { color: #435565; }
.page-foreign .prose .takeaway-box a { color: #005fae; text-decoration-color: #005fae; }
.page-foreign .takeaway-box a:focus-visible { outline-color: #0072ce; }
.page-foreign .split-box { border: 0; background: #f0f4f7; }
.page-foreign .article-table thead th { background: #edf2f6; color: #1d3346; border-bottom: 1px solid #cddbe6; }
.page-foreign .article-table tbody tr:nth-child(even) { background: #f8fafc; }

/* EU: a blue index that leads straight into individual national systems. */
.guide-opening--eu { background: #edf5fc; border-bottom-color: #c7dfee; }
.eu-heading { max-width: 980px; }
.page-eu .guide-opening h1 { max-width: 920px; color: #005fae; }
.page-eu .guide-intro { max-width: 79ch; color: #3f5870; }
.jurisdiction-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-top: 30px; }
.jurisdiction-nav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 5px 10px;
  align-content: start;
  min-width: 0;
  min-height: 91px;
  padding: 17px;
  background: #fff;
  border: 1px solid #c5daea;
  border-radius: 6px;
  color: #123852;
  transition: border-color .15s, background-color .15s;
}
.jurisdiction-nav strong { grid-column: 1; font-size: 14px; font-weight: 800; line-height: 1.5; }
.jurisdiction-nav span { grid-column: 1 / -1; color: #526d82; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.jurisdiction-nav svg { grid-column: 2; grid-row: 1; width: 16px; height: 16px; margin-top: 2px; color: #0072ce; }
.jurisdiction-nav a:hover { background: #f7fbff; border-color: #0072ce; }
.page-eu .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 50px; }
.page-eu .toc { background: #f4f8fc; border: 1px solid #d9e7f2; border-radius: 7px; padding: 16px; }
.page-eu .toc a { border-left: 2px solid #d6e4f0; font-size: 11px; padding: 7px 10px; }
.page-eu .toc a.active,
.page-eu .toc a:hover { border-left-color: #0072ce; background: #e6f0f9; }
.page-eu .prose > h2 { color: #005da8; border-top-color: #c9deef; }
.page-eu .article-table thead th { background: #0066b8; }
.page-eu .article-table tbody tr:nth-child(even) { background: #f0f7fd; }
.page-eu .split-box { background: #edf5fc; border-color: #cbdfee; }
.page-eu .split-item { border-color: #cfdfed; border-top-color: #0072ce; }
.page-eu .checklist-box { border-color: #c8deee; border-top-color: #0072ce; }

/* Offshore: a quiet research directory, not another promotional hero. */
.guide-opening--offshore { background: #f2f4f6; border-top: 4px solid #1d2d3b; border-bottom-color: #d0d9e1; }
.offshore-heading { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 48px; align-items: start; }
.page-offshore .guide-opening h1 { color: #152330; max-width: 820px; }
.page-offshore .guide-intro { color: #485b6b; font-size: 15px; }
.research-index { padding: 20px 23px; background: #fff; border: 1px solid #d2dce5; border-radius: 4px; }
.research-index h2 { margin: 0 0 12px; color: #243a4c; font-size: 16px; line-height: 1.5; font-weight: 800; letter-spacing: -.02em; }
.research-index ul { list-style: none; margin: 0; padding: 0; }
.research-index li { margin: 0; border-top: 1px solid #e2e8ee; }
.research-index a { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 35px; padding: 7px 0; color: #345971; font-size: 12px; line-height: 1.6; }
.research-index a:hover { color: #005fae; text-decoration: underline; text-underline-offset: 4px; }
.research-index a svg { width: 14px; height: 14px; flex-shrink: 0; }
.page-offshore .article-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 55px; }
.page-offshore .toc a { border-left-color: #d4dee6; }
.page-offshore .toc a.active,
.page-offshore .toc a:hover { color: #183e5b; border-left-color: #213c52; background: #edf2f6; }
.page-offshore .prose > h2 { color: #1d3447; border-top: 2px solid #d8e1e9; font-size: 29px; }
.page-offshore .prose > h2:first-child { border-top: 0; }
.page-offshore .takeaway-box { background: #eaf0f5; border: 1px solid #ccd9e3; border-left: 4px solid #233e53; }
.page-offshore .takeaway-box::after { display: none; }
.page-offshore .prose .takeaway-box h3,
.page-offshore .prose .takeaway-box strong { color: #1d374b; }
.page-offshore .prose .takeaway-box p { color: #415969; }
.page-offshore .prose .takeaway-box a { color: #005fae; text-decoration-color: #005fae; }
.page-offshore .takeaway-box a:focus-visible { outline-color: #0072ce; }
.page-offshore .article-table-wrap { border-radius: 6px; }
.page-offshore .article-table thead th { background: #233b4e; }
.page-offshore .checklist-box { border-top-color: #263f53; }
.page-offshore .split-box { background: #eef2f5; }
.page-offshore .split-item { border-top-color: #314c61; }
.page-offshore .sources-section { background: #edf2f6; }

@media (max-width: 1150px) {
  .formal-heading, .foreign-heading, .offshore-heading { grid-template-columns: minmax(0, 1fr) 285px; gap: 32px; }
  .guide-opening h1 { font-size: 49px; }
  .page-estonia .guide-opening h1 { font-size: 51px; }
  .guide-intro { font-size: 15px; }
  .page-estonia .article-layout,
  .page-eu .article-layout,
  .page-offshore .article-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 35px; }
  .page-foreign .article-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 35px; }
  .jurisdiction-nav a { padding: 15px 13px; }
}
@media (max-width: 950px) {
  .formal-heading, .foreign-heading, .offshore-heading { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .formal-summary { padding: 18px 21px; }
  .formal-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
  .formal-summary h2 { margin-bottom: 12px; }
  .border-note { padding-block: 2px; max-width: 720px; }
  .border-note h2 { font-size: 18px; margin-bottom: 8px; }
  .research-index { padding: 18px 21px; }
  .research-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .guide-opening h1, .page-estonia .guide-opening h1 { max-width: 800px; }
  .jurisdiction-nav { gap: 8px; }
  .jurisdiction-nav strong { font-size: 13px; }
  .jurisdiction-nav span { font-size: 10px; }
}
@media (max-width: 850px) {
  .guide-opening { padding-block: 35px; }
  .guide-breadcrumb { margin-bottom: 20px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-section { padding-block: 32px 42px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-layout > .toc {
    position: relative;
    top: auto;
    max-height: 270px;
    border: 1px solid #dce5ed;
    padding: 16px;
  }
  .page-estonia .registry-section .section-head { gap: 25px; }
  .page-estonia .registry-section .section-head h2 { font-size: 28px; }
  .jurisdiction-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }
  .jurisdiction-nav a { min-height: 87px; padding: 15px; }
  .jurisdiction-nav strong { font-size: 14px; }
  .jurisdiction-nav span { font-size: 11px; }
}
@media (max-width: 560px) {
  .guide-opening { padding-block: 28px; }
  .guide-breadcrumb { font-size: 11px; gap: 7px; margin-bottom: 18px; }
  .guide-opening h1 { font-size: clamp(32px, 8.2vw, 39px); line-height: 1.14; letter-spacing: -.035em; margin-bottom: 18px; }
  .page-estonia .guide-opening h1 { font-size: clamp(36px, 8.6vw, 43px); line-height: 1.1; }
  .guide-intro,
  .page-estonia .guide-intro,
  .page-offshore .guide-intro { font-size: 14px; line-height: 1.8; }
  .guide-actions { margin-top: 21px; gap: 9px; }
  .guide-actions .btn, .guide-link { font-size: 11px; min-height: 43px; padding: 10px 13px; gap: 8px; }
  .formal-heading, .foreign-heading, .offshore-heading { gap: 23px; }
  .formal-summary { padding: 18px; }
  .formal-summary dl { display: block; }
  .formal-summary dl > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); padding-block: 10px; }
  .formal-summary h2 { font-size: 16px; }
  .formal-summary dd { font-size: 12px; }
  .border-note { padding-left: 18px; }
  .border-note h2 { font-size: 18px; }
  .border-note p { font-size: 13px; line-height: 1.8; }
  .jurisdiction-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
  .jurisdiction-nav a { min-height: 88px; padding: 14px; }
  .jurisdiction-nav strong { font-size: 13px; }
  .jurisdiction-nav span { font-size: 10px; }
  .research-index { padding: 17px 19px; }
  .research-index ul { gap: 0 16px; }
  .research-index a { font-size: 11px; line-height: 1.6; min-height: 36px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-section { padding-block: 27px 36px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-layout { gap: 25px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .article-layout > .toc { max-height: 245px; padding: 14px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .prose > h2 { font-size: 25px; margin-top: 30px; padding-top: 20px; }
  .page-estonia .prose > h2 { font-size: 28px; }
  .page-foreign .prose > h2 { padding-top: 0; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .prose > h2:first-child { margin-top: 0; padding-top: 0; }
  .page-estonia .registry-section { padding-block: 31px; }
  .page-estonia .registry-section .section-head h2 { font-size: 28px; }
  .page-estonia .registry-section .section-head p { font-size: 12px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .sources-section { padding-block: 31px; }
  :is(.page-estonia, .page-foreign, .page-eu, .page-offshore) .sources-layout h2 { font-size: 23px; }
}
@media (max-width: 360px) {
  .guide-opening h1 { font-size: 32px; }
  .page-estonia .guide-opening h1 { font-size: 36px; }
  .jurisdiction-nav a { padding: 13px 11px; gap: 5px 7px; }
  .research-index ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .jurisdiction-nav a { transition: none; }
}

/* Guide openings use the homepage's responsive scale, never viewport height. */
.guide-opening {
  --guide-hero-height: 620px;
  --guide-title-size: clamp(53px, 5.5vw, 82px);
  --guide-description-size: 15px;
  --guide-inner-padding: 28px;
  --guide-copy-padding: 32px;
}
@media (min-width: 1700px) {
  .guide-opening { --guide-hero-height: 650px; --guide-title-size: 84px; }
}
@media (max-width: 1200px) {
  .guide-opening { --guide-hero-height: 590px; --guide-title-size: clamp(49px, 5.35vw, 64px); --guide-description-size: 14px; }
}
@media (max-width: 950px) {
  .guide-opening { --guide-hero-height: 560px; --guide-title-size: clamp(43px, 5.5vw, 55px); --guide-description-size: 13px; }
}
@media (max-width: 760px) {
  .guide-opening { --guide-hero-height: 0px; --guide-title-size: clamp(45px, 7.1vw, 57px); --guide-description-size: 14px; --guide-inner-padding: 28px; --guide-copy-padding: 28px; }
}
@media (max-width: 560px) {
  .guide-opening { --guide-title-size: clamp(36px, 8.6vw, 47px); --guide-description-size: 13px; --guide-inner-padding: 24px; --guide-copy-padding: 26px; }
}
@media (max-width: 360px) {
  .guide-opening { --guide-title-size: 34px; }
}
