@font-face {
  font-family: "Egghead Display";
  src: url("assets/fonts/SuperMindset.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #171717;
  --paper: #f2efe7;
  --surface: #fcfbf7;
  --muted: #65635d;
  --yellow: #f3c944;
  --blue: #dde2e5;
  --green: #dbe5d7;
  --line: 1.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  background: radial-gradient(circle at 1px 1px, rgba(29,32,48,.05) 1px, transparent 1px), var(--paper);
  background-size: 22px 22px;
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #2867d8; outline-offset: 3px; }
html[data-public-maintenance="true"] .institutional-shell { visibility: hidden; }

.institutional-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: var(--line);
  background: rgba(255,253,248,.96);
  backdrop-filter: blur(12px);
}
.institutional-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; text-decoration: none; }
.institutional-brand img { width: 176px; height: 52px; object-fit: contain; object-position: left center; display: block; }
.institutional-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.institutional-header nav a {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.institutional-header nav a:hover, .institutional-header nav a[aria-current="page"] { background: #ebe7dc; }
.institutional-header .institutional-app-link { border: var(--line); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }

.home-main { width: min(1120px, calc(100% - 36px)); margin: 36px auto 64px; }
.home-hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 16px; align-items: stretch; }
.home-hero-copy, .home-cycle { border: var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.home-hero-copy { position: relative; overflow: hidden; padding: clamp(30px,5vw,54px); }
.home-hero-copy::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg,var(--yellow) 0 33%,var(--blue) 33% 66%,var(--green) 66%); }
.home-hero-copy h1 { max-width: 700px; margin: 0; font: 950 clamp(40px,6vw,64px)/.96 "Egghead Display", Inter, sans-serif; letter-spacing: -.035em; }
.home-hero-copy > p:not(.institutional-eyebrow) { max-width: 650px; margin: 22px 0 0; color: #45443f; font-size: 17px; }
.home-hero-copy > small { display: block; max-width: 620px; margin-top: 18px; color: var(--muted); font-weight: 700; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: var(--line); border-radius: 7px; background: var(--surface); box-shadow: 2px 2px 0 var(--ink); font-size: 14px; font-weight: 900; text-decoration: none; }
.home-button-primary { background: var(--yellow); }
.home-button:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.home-cycle { padding: 26px; color: #fffdf8; background: #20202a; }
.home-cycle > strong { display: block; margin-bottom: 18px; font-size: 19px; }
.home-cycle ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.home-cycle li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.home-cycle li > span { display: grid; width: 34px; height: 34px; place-items: center; border: var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font-weight: 950; }
.home-cycle b, .home-cycle small { display: block; }
.home-cycle small { margin-top: 2px; color: #c8c5bd; line-height: 1.45; }
.home-section { margin-top: 56px; }
.home-section > h2, .home-section-heading h2, .home-example h2, .home-editorial h2, .home-app-cta h2 { max-width: 840px; margin: 0; font-size: clamp(30px,5vw,50px); line-height: 1.04; letter-spacing: -.025em; }
.home-section-lead { max-width: 780px; color: #4d4b46; font-size: 18px; }
.home-method-grid, .home-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.home-method-grid article, .home-guide-grid article { padding: 20px; border: var(--line); border-radius: 12px; background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
.home-method-grid article:nth-child(4n+1), .home-guide-grid article:nth-child(4n+1) { border-top: 9px solid var(--yellow); }
.home-method-grid article:nth-child(4n+2), .home-guide-grid article:nth-child(4n+2) { border-top: 9px solid var(--blue); }
.home-method-grid article:nth-child(4n+3), .home-guide-grid article:nth-child(4n+3) { border-top: 9px solid var(--green); }
.home-method-grid article:nth-child(4n), .home-guide-grid article:nth-child(4n) { border-top: 9px solid #e7b7a9; }
.home-method-grid span, .home-guide-grid span { color: var(--muted); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.home-method-grid h3, .home-guide-grid h3 { margin: 12px 0 8px; font-size: 21px; line-height: 1.12; }
.home-method-grid p, .home-guide-grid p { margin: 0; color: #55524d; font-size: 14px; }
.home-guide-grid article { display: flex; min-height: 265px; flex-direction: column; }
.home-guide-grid a { margin-top: auto; padding-top: 18px; font-weight: 900; text-underline-offset: 4px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-section-heading > a { flex: 0 0 auto; font-weight: 900; }
.home-example { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; margin-top: 56px; padding: clamp(26px,4vw,46px); border: var(--line); border-radius: 12px; background: #f5efda; box-shadow: var(--shadow); }
.home-example p { color: #47443d; }
.home-example-note { padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 9px; background: rgba(255,253,248,.7); font-size: 13px; font-weight: 750; }
.home-example-data { padding: 24px; border: var(--line); border-radius: 14px; background: var(--surface); }
.home-example-data dl { display: grid; gap: 10px; margin: 0; }
.home-example-data dl > div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(29,32,48,.18); }
.home-example-data dt { font-weight: 950; }
.home-example-data dd { margin: 0; }
.home-example-data p { margin: 20px 0 0; }
.home-editorial { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; margin-top: 56px; padding: clamp(26px,4vw,46px); border: var(--line); border-left: 8px solid var(--green); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.home-editorial p { margin: 0 0 13px; color: #46443f; }
.home-editorial a { font-weight: 850; text-underline-offset: 3px; }
.home-app-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: clamp(26px,4vw,46px); border: var(--line); border-radius: 12px; background: var(--blue); box-shadow: var(--shadow); }
.home-app-cta p:not(.institutional-eyebrow) { max-width: 730px; margin-bottom: 0; }
.home-app-cta > a { flex: 0 0 auto; }
.article-byline { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.article-case { min-width: 0; margin-top: 42px; padding: 24px; border: var(--line); border-left: 9px solid var(--blue); border-radius: 14px; background: #f8f6f0; }
.article-case h2:first-child { margin-top: 0; }
.article-table-wrap { width: 100%; min-width: 0; max-width: 100%; margin: 20px 0; overflow-x: auto; }
.article-table-wrap table { width: 100%; min-width: 580px; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.article-table-wrap caption { padding: 10px; border: var(--line); border-bottom: 0; background: var(--yellow); font-weight: 900; text-align: left; }
.article-table-wrap th, .article-table-wrap td { padding: 10px 12px; border: 1.5px solid var(--ink); text-align: left; vertical-align: top; }
.article-table-wrap th { background: #e8eef2; }

.institutional-main { width: min(920px, calc(100% - 36px)); margin: 52px auto 72px; }
.institutional-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 62px);
  border: var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.institutional-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: linear-gradient(90deg,var(--yellow) 0 33%,var(--blue) 33% 66%,var(--green) 66%); }
.institutional-eyebrow { margin: 0 0 12px; color: #656057; font-size: 12px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.institutional-hero h1 { max-width: 780px; margin: 0; font: 950 clamp(38px, 7vw, 68px)/.98 "Egghead Display", Inter, sans-serif; letter-spacing: -.035em; }
.institutional-hero > p:last-child { max-width: 720px; margin: 22px 0 0; color: #4f4d49; font-size: 18px; }
.institutional-updated { display: inline-flex; margin-top: 22px; padding: 7px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: #f5f1e8; font-size: 12px; font-weight: 850; }

.institutional-content { display: grid; gap: 18px; margin-top: 34px; }
.institutional-card { padding: clamp(24px, 4vw, 38px); border: var(--line); border-radius: 16px; background: var(--surface); box-shadow: 4px 4px 0 var(--ink); }
.institutional-card h2 { margin: 0 0 12px; font-size: clamp(22px, 4vw, 31px); line-height: 1.1; }
.institutional-card h3 { margin: 26px 0 8px; font-size: 18px; }
.institutional-card p { margin: 10px 0; }
.institutional-card ul, .institutional-card ol { margin: 12px 0; padding-left: 22px; }
.institutional-card li + li { margin-top: 8px; }
.institutional-card a { font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.institutional-note { border-left: 8px solid var(--yellow); }
.contact-email-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 10px solid var(--blue); }
.contact-email-card h2 { margin-bottom: 7px; }
.contact-email-card p { margin: 0; color: var(--muted); }
.contact-email-card > a { flex: 0 0 auto; padding: 12px 16px; border: var(--line); border-radius: 10px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 15px; text-decoration: none; }
.institutional-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.guide-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.guide-card { display: flex; min-height: 280px; flex-direction: column; padding: 28px; border: var(--line); border-radius: 16px; background: var(--surface); box-shadow: 4px 4px 0 var(--ink); }
.guide-card:nth-child(3n+1) { border-top: 10px solid var(--yellow); }
.guide-card:nth-child(3n+2) { border-top: 10px solid var(--blue); }
.guide-card:nth-child(3n) { border-top: 10px solid var(--green); }
.guide-card span { color: var(--muted); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.guide-card h2 { margin: 13px 0 10px; font-size: 25px; line-height: 1.08; }
.guide-card p { margin: 0 0 22px; color: #56534e; }
.guide-card a { margin-top: auto; font-weight: 900; text-underline-offset: 4px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 24px; align-items: start; margin-top: 34px; }
.article-body { min-width: 0; padding: clamp(26px,5vw,52px); border: var(--line); border-radius: 18px; background: var(--surface); box-shadow: 5px 5px 0 var(--ink); }
.article-body h2 { margin: 42px 0 14px; font-size: clamp(24px,4vw,34px); line-height: 1.12; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 28px 0 10px; font-size: 20px; }
.article-body p, .article-body li { color: #393936; }
.article-body li + li { margin-top: 8px; }
.article-body blockquote { margin: 28px 0; padding: 20px 22px; border: var(--line); border-left: 9px solid var(--yellow); border-radius: 10px; background: #f6f1e7; font-weight: 750; }
.article-aside { position: sticky; top: 104px; padding: 22px; border: var(--line); border-radius: 14px; background: #e8eef2; box-shadow: 4px 4px 0 var(--ink); }
.article-aside strong { display: block; margin-bottom: 10px; font-size: 15px; }
.article-aside strong:not(:first-child) { margin-top: 22px; }
.article-aside a { display: block; padding: 7px 0; font-size: 13px; font-weight: 800; }
.article-aside a + a { border-top: 1px solid rgba(29,32,48,.2); }
.article-sources { margin-top: 42px; padding: 22px 24px; border: var(--line); border-left: 8px solid var(--green); border-radius: 12px; background: #f4f2eb; }
.article-sources h2 { margin: 0 0 10px; font-size: 22px; }
.article-sources p { margin: 0; color: var(--muted); font-size: 14px; }
.article-sources ul { margin: 14px 0 0; padding-left: 20px; }
.article-sources li + li { margin-top: 8px; }
.article-sources a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.institutional-footer { padding: 34px max(24px, calc((100vw - 1120px) / 2)); border-top: var(--line); background: #1d2030; color: #f8f5ed; }
.institutional-footer > div { display: flex; justify-content: space-between; gap: 28px; }
.institutional-footer strong { display: block; margin-bottom: 8px; font-size: 20px; }
.institutional-footer p { max-width: 440px; margin: 0; color: #d9d5ca; font-size: 13px; }
.institutional-footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 18px; max-width: 480px; }
.institutional-footer a { color: inherit; font-size: 13px; font-weight: 800; }

#migrationMaintenance[hidden] { display: none; }
#migrationMaintenance { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; background: #f4eebf; color: #171719; }
#migrationMaintenance article { width: min(520px,100%); border: 3px solid #171719; border-radius: 14px; background: #fffdf8; box-shadow: 8px 8px 0 #171719; overflow: hidden; }
#migrationMaintenance article > i { display: block; height: 9px; background: linear-gradient(90deg,#f5ca3d 0 33%,#58a5df 33% 66%,#73c987 66%); }
#migrationMaintenance article > div { padding: 34px; }
#migrationMaintenance span { display: inline-block; border: 2px solid #171719; border-radius: 999px; padding: 6px 10px; font: 900 10px Arial; text-transform: uppercase; }
#migrationMaintenance h1 { margin: 18px 0 12px; font: 900 31px/1.05 Arial; }
#migrationMaintenance p { margin: 0; font: 600 15px/1.6 Arial; }
#migrationMaintenance small { display: block; margin-top: 18px; font: 800 13px Arial; color: #c28700; }

@media (max-width: 760px) {
  .institutional-header { position: static; align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 18px; }
  .institutional-header nav { gap: 3px; }
  .institutional-header nav a { padding: 7px 8px; }
  .institutional-main { margin-top: 28px; }
  .institutional-grid { grid-template-columns: 1fr; }
  .contact-email-card { align-items: flex-start; flex-direction: column; }
  .contact-email-card > a { width: 100%; overflow-wrap: anywhere; text-align: center; }
  .guide-list, .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .institutional-footer > div { flex-direction: column; }
  .institutional-footer nav { justify-content: flex-start; }
  .home-main { margin-top: 28px; }
  .home-hero, .home-example, .home-editorial { grid-template-columns: 1fr; }
  .home-method-grid, .home-guide-grid { grid-template-columns: 1fr; }
  .home-section-heading, .home-app-cta { align-items: flex-start; flex-direction: column; }
  .home-app-cta > a { width: 100%; }
}
