:root {
  color-scheme: dark;
  --bg: #0a100d;
  --surface: #101914;
  --raised: #152019;
  --line: #28382d;
  --soft-line: #203027;
  --text: #eff6f0;
  --muted: #a7b7aa;
  --subtle: #819789;
  --green: #a3efba;
  --green-dark: #123323;
  --warn: #eec58c;
  --red: #f0a69d;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.frame { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 9px 14px; background: var(--green); color: #0a1b11; border-radius: 5px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid #1e2b22; position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; letter-spacing: -.045em; font-weight: 680; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; color: var(--green); width: 28px; height: 28px; }
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; }
.nav, .header-actions { display: flex; align-items: center; }
.nav { gap: clamp(16px, 2.5vw, 36px); }
.nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav [aria-current] { color: var(--text); }
.nav [aria-current] { font-weight: 650; }
.nav i, .preview-label i, .hero-meta i, .workspace-status i { width: 6px; height: 6px; display: inline-block; flex: none; border-radius: 50%; background: var(--green); }
.header-actions { gap: 12px; }
.preview-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 5px 11px; white-space: nowrap; }
.preview-label i { background: #809987; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; inset: calc(100% + 8px) 0 auto auto; min-width: 180px; background: #162219; border: 1px solid var(--line); box-shadow: 0 18px 36px #0007; border-radius: 8px; padding: 6px; }
.mobile-nav a { display: block; padding: 9px 12px; border-radius: 4px; }
.mobile-nav a:first-child { color: var(--green); }
.mobile-nav a:hover { background: #22362a; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(36px, 4.5vw, 75px); padding-block: clamp(72px, 7vw, 114px) clamp(69px, 7.1vw, 112px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -50px 0 38%; z-index: -1; background: radial-gradient(ellipse at 58% 52%, #254b312c, transparent 67%); pointer-events: none; }
.hero-index { display: flex; align-items: center; gap: 11px; font: 600 11px/1.1 var(--mono); letter-spacing: .12em; color: var(--green); }
.index-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #32553d; border-radius: 7px; background: #12271a; }
.index-icon .icon { width: 16px; height: 16px; }
.index-rule { height: 1px; width: 19px; background: #48664e; }
.index-category { color: var(--subtle); font: 500 12px/1 var(--sans); letter-spacing: .04em; }
.hero h1 { margin-block: 25px 21px; font-size: clamp(51px, 5.05vw, 77px); line-height: 1.1; font-weight: 690; letter-spacing: -.064em; }
.hero h1 span { display: block; margin-top: 5px; color: var(--green); }
.intro { max-width: 25em; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 28px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; padding: 9px 15px; border-radius: 7px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.primary { color: #0b2013; background: var(--green); box-shadow: inset 0 1px 0 #ffffff38; }
.primary:hover { background: #c2ffd2; }
.secondary { background: #151f18; border-color: #35483a; color: var(--text); }
.secondary:hover { background: #223127; border-color: #51745b; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 21px; color: var(--subtle); font-size: 12px; }
.hero-meta > span, .hero-meta > a { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta > :not(:first-child)::before { content: ""; display: inline-block; width: 1px; height: 11px; margin-right: 7px; background: #344239; }
.hero-meta a:hover { color: var(--green); }
.hero-meta i { width: 5px; height: 5px; background: #75a983; }

.workspace { min-width: 0; border: 1px solid #355242; border-radius: 13px; background: #101914; box-shadow: 0 28px 64px #0006, 0 0 0 6px #86bb9009; }
.workspace-top { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #151f18; border-radius: 12px 12px 0 0; }
.workspace-name { display: flex; align-items: center; gap: 10px; }
.workspace-name h2 { font-size: 14px; font-weight: 640; }
.workspace-icon { display: grid; place-items: center; width: 28px; height: 28px; background: #1e3325; border: 1px solid #34513b; border-radius: 6px; color: #abeab9; }
.workspace-icon .icon { width: 15px; height: 15px; }
.workspace-status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #3a5141; padding: 3px 9px; color: #bdd8c4; border-radius: 24px; font-size: 11px; white-space: nowrap; }
.workspace-status i { width: 5px; height: 5px; }
.workspace-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 6px 15px; border-bottom: 1px solid var(--line); }
.filename { display: flex; align-items: center; gap: 8px; min-width: 0; font: 12px var(--mono); color: #c5d8c8; }
.filename span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-mark { color: var(--green); font-size: 17px; }
.variants { display: flex; border: 1px solid var(--soft-line); background: #0a120d; padding: 2px; border-radius: 6px; white-space: nowrap; }
.variants button { padding: 5px 9px; min-height: 30px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.variants button:hover { color: var(--text); }
.variants [aria-pressed="true"] { background: #25382b; color: #e5f6e7; }
.workspace-content { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(195px, 1fr); }
.editor { min-width: 0; display: flex; flex-direction: column; background: #0e1711; }
.editor-label { padding: 14px 15px 9px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.editor-label span { color: var(--subtle); font: 11px var(--mono); }
.code-wrap { min-height: 185px; max-width: 100%; overflow-x: auto; scrollbar-color: #3e5748 #142019; scrollbar-width: thin; padding-block: 3px 10px; }
.code { --line-number: 12; margin: 0; padding: 0; list-style: none; font: 11px/1.85 var(--mono); counter-reset: source-line var(--line-number); width: max-content; min-width: 100%; }
.code li { display: flex; counter-increment: source-line; padding-right: 13px; border-left: 2px solid transparent; min-height: 20px; }
.code li::before { content: counter(source-line); width: 34px; flex: none; text-align: right; padding-right: 8px; color: #91a699; }
.code code { color: #d0e1d4; font: inherit; white-space: pre; }
.code b { color: #82d3a0; font-weight: 500; }
.code em { color: #dbeadf; font-style: normal; }
.code q { color: #e9c990; quotes: none; }
.code .line-risk { background: #372d20; border-left-color: #d7ad74; }
.code .line-fix { background: #183322; border-left-color: #75ae88; }
.editor-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 7px 15px 12px; color: #cab793; font-size: 11px; }
.editor-foot > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.workspace[data-active="after"] .editor-foot { color: #a1d5ae; }
.findings { min-width: 0; border-left: 1px solid var(--line); padding: 14px 12px 13px; }
.findings-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.findings-title h3 { font-size: 12px; font-weight: 650; }
.findings-title > span { border-radius: 5px; background: #302b20; color: var(--warn); font: 11px/1.1 var(--mono); padding: 4px 6px; }
.workspace[data-active="after"] .findings-title > span { background: #1c3927; color: var(--green); }
.finding-list { display: grid; gap: 6px; }
.finding-list button { display: grid; grid-template-columns: 23px minmax(0, 1fr) 13px; align-items: center; gap: 6px; width: 100%; text-align: left; min-height: 48px; padding: 6px 7px; border-radius: 6px; border: 1px solid #2b3c30; background: #131d16; }
.finding-list button:is([aria-pressed="true"], :hover) { background: #213227; border-color: #48614e; }
.finding-id { align-self: start; margin-top: 1px; color: var(--subtle); font: 11px/1.4 var(--mono); }
.finding-list strong { display: block; color: var(--text); font-size: 12px; font-weight: 650; }
.finding-list small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }
.finding-list .icon { width: 13px; height: 13px; color: var(--green); }
.finding-detail { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.workspace[data-active="after"] .finding-detail { margin-top: 16px; }
.workspace-foot { min-height: 43px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 15px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.workspace-foot a { display: inline-flex; align-items: center; gap: 5px; color: #bee2c6; white-space: nowrap; }
.workspace-foot a:hover { color: var(--green); }
.workspace-foot .icon { width: 12px; height: 12px; }
.divider { margin-inline: 3px; color: var(--subtle); }

.market { border-block: 1px solid #213028; background: #0f1812; }
.market-inner { min-height: 91px; display: grid; grid-template-columns: 1.16fr repeat(3, 1fr) auto; align-items: stretch; }
.market-title { display: flex; gap: 11px; align-items: center; padding: 11px 15px 11px 0; }
.market-title > .icon { color: var(--green); }
.market-title h2 { font-size: 14px; font-weight: 650; }
.market-title p { font-size: 10px; color: var(--subtle); margin-top: 2px; }
.quote { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; border-left: 1px solid #26352b; padding: 12px clamp(9px, 1.65vw, 23px); }
.quote:hover { background: #19271c; }
.coin { display: grid; place-items: center; width: 26px; height: 26px; font-size: 16px; border-radius: 50%; background: #273a2c; color: #b7dac0; }
.coin.btc { background: #382c1b; color: #ffc78d; }
.coin.eth { background: #2a303f; color: #c6d0fa; }
.quote strong, .quote small { display: block; white-space: nowrap; }
.quote strong { font-size: 12px; }
.quote small { font-size: 10px; color: var(--subtle); margin-top: 2px; }
.quote-data { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }
.quote-data small { color: var(--green); }
.quote-data small.down { color: var(--red); }
.market-more { display: flex; align-items: center; justify-content: end; gap: 5px; padding-left: 18px; border-left: 1px solid #26352b; color: #c2deca; font-size: 12px; font-weight: 620; white-space: nowrap; }
.market-more:hover { color: var(--green); }
.market-more .icon { width: 13px; height: 13px; }

.explore { padding-block: 49px 53px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-index { color: var(--subtle); font: 11px var(--mono); letter-spacing: .1em; }
.section-heading h2 { font-size: 28px; margin-top: 3px; font-weight: 660; letter-spacing: -.045em; }
.section-heading a { display: inline-flex; align-items: center; gap: 6px; color: #b9d1bf; font-size: 13px; }
.section-heading a .icon { width: 14px; height: 14px; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.path { display: grid; grid-template-columns: 34px 1fr 15px; align-items: center; gap: 11px; padding: 18px 14px; min-height: 84px; }
.path + .path { border-left: 1px solid var(--line); }
.path:first-child { padding-left: 0; }
.path:hover { background: #141f17; }
.path-icon { display: grid; place-items: center; height: 34px; border-radius: 7px; background: #192a1e; border: 1px solid #314937; color: var(--green); }
.path-icon .icon { width: 16px; height: 16px; }
.path strong, .path small { display: block; }
.path strong { font-size: 14px; font-weight: 630; }
.path small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.path .end { width: 15px; height: 15px; color: var(--subtle); }
.site-footer { border-top: 1px solid #213028; color: var(--subtle); font-size: 12px; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-inner a:hover { color: var(--green); }

@media (max-width: 1080px) {
  .frame { width: calc(100% - 56px); }
  .hero { gap: 30px; }
  .hero::before { right: -28px; }
  .workspace-content { grid-template-columns: minmax(0, 1.45fr) minmax(160px, 1fr); }
  .findings { padding-inline: 8px; }
  .market-inner { grid-template-columns: 1.1fr repeat(3, 1fr) auto; }
  .market-more { padding-left: 10px; }
}
@media (max-width: 910px) {
  .nav { gap: 15px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 54px 43px; }
  .hero::before { inset: 24% -28px 0 0; }
  .hero-copy { max-width: 680px; }
  .workspace-content { grid-template-columns: minmax(0, 1.64fr) minmax(190px, 1fr); }
  .findings { padding-inline: 12px; }
  .market-inner { grid-template-columns: repeat(3, 1fr); }
  .market-title { grid-column: 1 / 3; border-bottom: 1px solid #26352b; }
  .market-more { grid-column: 3; grid-row: 1; border: 0; border-bottom: 1px solid #26352b; }
  .quote:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 850px) {
  .nav { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 560px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { min-height: 58px; gap: 10px; }
  .header-actions { gap: 8px; }
  .brand { font-size: 18px; }
  .preview-label { padding: 4px 8px; font-size: 11px; }
  .hero { gap: 26px; padding-block: 36px 29px; }
  .hero::before { inset-inline: -18px; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 56px); margin-block: 17px 15px; }
  .hero h1 span { margin-top: 4px; }
  .intro { font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .button { min-height: 44px; padding: 8px 10px; gap: 5px; font-size: 13px; }
  .button .icon { width: 14px; height: 14px; }
  .hero-meta { gap: 3px 10px; margin-top: 13px; font-size: 10.5px; }
  .hero-meta > :not(:first-child)::before { margin-right: 2px; }
  .workspace { border-radius: 10px; box-shadow: 0 18px 34px #0005; }
  .workspace-top { padding-inline: 11px; min-height: 44px; border-radius: 9px 9px 0 0; }
  .workspace-toolbar { min-height: 44px; padding-inline: 10px; }
  .filename { font-size: 11px; gap: 4px; }
  .variants button { min-height: 32px; padding-inline: 7px; }
  .workspace-content { display: block; }
  .editor-label { padding: 7px 11px 3px; }
  .code-wrap { padding-block: 2px 5px; min-height: 115px; }
  .code { width: 100%; font-size: 10.5px; line-height: 1.65; }
  .code li { min-height: 17px; }
  .code li::before { width: 29px; }
  .code code { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .editor-foot { padding: 4px 11px 7px; }
  .findings { border-left: 0; border-top: 1px solid var(--line); padding: 9px 10px 10px; }
  .findings-title { margin-bottom: 7px; }
  .finding-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finding-list button { grid-template-columns: 15px minmax(0, 1fr) 12px; gap: 4px; min-height: 44px; padding: 5px; }
  .finding-list strong { font-size: 11px; }
  .finding-detail { margin-top: 7px; }
  .workspace-foot { min-height: 35px; padding: 5px 10px; }
  .market-title p { font-size: 9px; }
  .quote { gap: 3px; padding: 7px; grid-template-columns: 1fr; }
  .quote .coin, .quote > span:nth-child(2) > small { display: none; }
  .quote-data { justify-self: start; text-align: left; }
  .explore { padding-block: 29px; }
  .section-heading { margin-bottom: 9px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading a { font-size: 11px; }
  .paths { grid-template-columns: 1fr; }
  .path, .path:first-child { padding: 11px 0; min-height: 60px; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { min-height: 58px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .finding-list button, .path, .quote { transition: background-color .16s, border-color .16s; }
}

/* Live homepage integrations. The workbench layout lives in the approved preview. */
.language-link {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.language-link:hover { border-color: #547260; color: var(--text); }

.market-inner { grid-template-columns: minmax(165px, 1.15fr) repeat(4, minmax(0, 1fr)) auto; }
.market-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; color: var(--muted); font-size: 10px; }
.market-status strong { font-weight: 640; }
.market-status a { text-decoration: underline; text-underline-offset: 2px; }
.market-status [data-quote-status="current"] { color: var(--green); }
.market-status [data-quote-status="delayed"] { color: var(--warn); }
.quote-data small.fin-down { color: var(--red); }
.project-coin { color: var(--green); }
.project-quote .quote-data strong { color: var(--green); }

body.green-home .home-news { padding-block: 40px 10px; }
body.green-home .home-news .ec-news-latest {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
body.green-home .ec-news-latest > div { margin-bottom: 12px; }
body.green-home .ec-news-latest > div small { display: none; }
body.green-home .ec-news-latest h2 { font-size: 27px; font-weight: 660; letter-spacing: -.035em; }
body.green-home .ec-news-latest p { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.green-home .ec-news-latest ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
body.green-home .ec-news-latest li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
body.green-home .ec-news-latest li a { color: var(--text); font-weight: 560; }
body.green-home .ec-news-latest li a:hover { color: var(--green); }
body.green-home .ec-news-latest time { color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
body.green-home .ec-news-latest .ec-news-all { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; }
.footer-inner { flex-wrap: wrap; padding-block: 12px; }

.metrics-consent {
  position: fixed;
  z-index: 10;
  inset: auto 18px 18px auto;
  max-width: min(520px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: var(--raised);
  border: 1px solid #48614e;
  border-radius: 8px;
  box-shadow: 0 14px 40px #0008;
}
.metrics-consent b, .metrics-consent p, .metrics-consent button { font-size: 11px; }
.metrics-consent p { margin: 3px 0 0; color: var(--muted); }
.metrics-consent button { border: 1px solid #48614e; background: var(--surface); border-radius: 5px; padding: 6px 8px; min-height: 36px; white-space: nowrap; }
.metrics-consent button:hover { background: #223629; }
.metrics-consent .consent-yes { border-color: #83be94; color: var(--green); }

@media (max-width: 1080px) {
  .market-inner { grid-template-columns: minmax(143px, 1fr) repeat(4, minmax(0, 1fr)) auto; }
  .market-inner .quote { padding-inline: 8px; gap: 6px; }
}
@media (max-width: 910px) {
  .market-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-title { grid-column: 1 / 4; }
  .market-more { grid-column: 4; }
}
@media (max-width: 560px) {
  .language-link { min-width: 38px; min-height: 38px; }
  .market-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-title { grid-column: 1; }
  .market-more { grid-column: 2; }
  .market-inner .quote { grid-template-columns: auto minmax(0, 1fr); padding: 7px 9px; }
  .market-inner .quote:nth-child(even) { border-left: 0; padding-left: 0; }
  .market-inner .quote:nth-child(4), .market-inner .quote:nth-child(5) { border-top: 1px solid var(--line); }
  .market-inner .quote-data { justify-self: end; text-align: right; }
  .market-inner .quote strong { font-size: 11px; }
  .market-inner .project-quote > span:nth-child(2) > small { display: block; }
  body.green-home .home-news { padding-block: 27px 5px; }
  body.green-home .ec-news-latest h2 { font-size: 23px; }
  body.green-home .ec-news-latest li { flex-direction: column; gap: 2px; }
  .metrics-consent { flex-wrap: wrap; inset: auto 10px 10px; max-width: none; gap: 6px 9px; }
  .metrics-consent > div { flex-basis: 100%; }
}

.site-nav { gap: clamp(17px, 3vw, 42px); }
.site-nav details { position: relative; }
.site-nav summary { display: flex; align-items: center; gap: 7px; padding: 12px 0; color: var(--muted); list-style: none; font-size: 14px; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary:hover, .site-nav details[open] summary { color: var(--text); }
.site-nav summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.site-nav details[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.nav-dropdown { position: absolute; top: 100%; left: -12px; min-width: 192px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #142019; box-shadow: 0 16px 44px #0006; }
.nav-dropdown a { display: flex; align-items: center; min-height: 41px; padding: 4px 9px; border-radius: 5px; }
.nav-dropdown a:hover, .mobile-nav a:hover { background: #203127; }
.mobile-nav nav { min-width: min(280px, calc(100vw - 42px)); max-height: min(70vh, 520px); overflow-y: auto; }
.mobile-nav nav section + section { border-top: 1px solid var(--line); }
.mobile-nav nav h2 { padding: 8px 12px 0; font: 600 11px var(--sans); color: var(--subtle); }
.mobile-nav nav a { padding: 8px 12px; min-height: 42px; }
.mobile-nav nav a:first-child { color: var(--text); }

.chain-hero { padding-block: clamp(58px, 8vw, 111px) clamp(49px, 6vw, 82px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.chain-hero h1 { font-size: clamp(62px, 7.2vw, 106px); line-height: .96; margin-block: 25px 24px; }
.chain-hero h1 span { margin-top: 15px; font-size: clamp(25px, 3.15vw, 47px); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.chain-hero .intro { max-width: 37em; }
.chain-hero .hero-meta { color: var(--muted); }
.chain-hero .hero-meta b { font-weight: 590; color: var(--warn); }
.testnet-shortcut { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 5px; color: var(--green); font-size: 13px; }
.testnet-shortcut .icon { width: 14px; height: 14px; }
.testnet-shortcut:hover { text-decoration: underline; text-underline-offset: 4px; }
.protocol-panel { isolation: isolate; border: 1px solid #355242; border-radius: 12px; background: #101914; overflow: hidden; box-shadow: 0 24px 54px #0005; }
.protocol-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; padding: 15px 19px; border-bottom: 1px solid var(--line); background: #142018; }
.protocol-head h2 { font-size: 14px; font-weight: 650; }
.protocol-head small { font-size: 11px; color: var(--muted); }
.protocol-chart { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: clamp(27px, 4vw, 52px) 16px; margin: 0; list-style: none; background: radial-gradient(ellipse at 50% 32%, #1a3225 0, transparent 68%); }
.protocol-chart::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#3e59454a 1px, transparent 1px), linear-gradient(90deg, #3e59454a 1px, transparent 1px); background-size: 27px 27px; mask-image: radial-gradient(ellipse at center, #000 0%, transparent 77%); }
.protocol-chart li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; }
.protocol-chart li + li::before { content: ""; position: absolute; height: 1px; width: calc(100% - 41px); right: calc(50% + 26px); top: 24px; background: linear-gradient(90deg, #385848, #699379); }
.protocol-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #4d745b; border-radius: 11px; background: #14241b; color: var(--green); }
.protocol-icon svg { width: 22px; height: 22px; }
.protocol-chart strong { margin-top: 11px; font-size: 13px; line-height: 1.35; font-weight: 650; }
.protocol-chart small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.protocol-foot { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; padding: 12px 19px; color: var(--muted); font-size: 12px; }
.protocol-foot a, .section-heading a, .portal-card a { color: var(--green); }
.protocol-foot a:hover, .section-heading a:hover, .portal-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.participation-preview { border-top: 1px solid var(--line); padding-block: 30px 34px; }
.participation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
.participation-card { min-width: 0; padding: clamp(14px, 2.5vw, 23px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.participation-card h3 { color: var(--text); font-size: 15px; font-weight: 650; }
.price-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 15px; }
.testnet-price { display: block; margin-top: 2px; color: var(--green); font-size: clamp(21px, 2.5vw, 30px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.participation-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 7px; }
.price-scenario { margin-top: 15px; padding-top: 13px; border-top: 1px dashed #46554b; }
.price-scenario h3 { color: var(--muted); }
.scenario-value { display: block; color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; }
.scenario-toggle { min-height: 42px; padding: 4px 9px; border: 1px solid #496353; border-radius: 6px; background: #142019; color: var(--text); font-size: 12px; }
.scenario-toggle:hover { border-color: var(--green); }
.weight-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 12px 0 10px; list-style: none; }
.weight-factors li { display: flex; align-items: center; padding: 6px 8px; min-height: 37px; border: 1px solid var(--line); border-radius: 6px; background: #142019; color: var(--text); font-size: 13px; }
.airdrop-card a { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; color: var(--green); font-size: 13px; }
.airdrop-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.airdrop-card .icon { width: 13px; height: 13px; }

.portal { padding-block: 32px 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.045em; font-weight: 655; }
.section-heading > p { color: var(--muted); font-size: 13px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.portal-card { display: flex; flex-direction: column; padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #101914; }
.portal-card h3 { font-size: 19px; letter-spacing: -.025em; font-weight: 640; margin-top: 13px; }
.portal-card p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 5px 0 13px; }
.portal-card ul { display: grid; gap: 2px; list-style: none; margin: auto 0 0; padding: 0; }
.portal-card li a { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; font-size: 13px; font-weight: 575; }
.portal-card li svg { width: 14px; height: 14px; }
.portal-card .portal-icon { color: var(--green); }
.market-inner .project-quote .quote-data strong { white-space: normal; }
.project-quote .quote-data { display: grid; gap: 3px; }
.project-quote .quote-data a { display: block; }
.project-purchase:hover, .project-scenario:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-quote .quote-data .project-scenario { color: var(--warn); font-size: 10px; line-height: 1.35; }
.project-scenario [data-scenario-amount] { white-space: nowrap; }
.market-scenario-note { padding-block: 6px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.chain-reading { padding-block: 36px 40px; }
.chain-reading .home-news { padding: 0 !important; }
.chain-reading .news-links { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.chain-reading .news-links a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.chain-reading .news-links a:hover { color: var(--green); }
.chain-reading .news-links small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.chain-review { padding-bottom: 38px; }
.chain-review summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: #101914; min-height: 48px; font-weight: 600; }
.chain-review summary::-webkit-details-marker { display: none; }
.chain-review summary::after { content: "+"; color: var(--green); font-size: 20px; line-height: 1; }
.chain-review details[open] summary::after { content: "−"; }
.chain-review .workspace { margin-top: 12px; }
.site-footer a:hover { color: var(--green); }

@media (max-width: 940px) {
  .chain-hero { gap: 32px; }
  .chain-hero h1 span { font-size: clamp(24px, 4.5vw, 39px); }
}
@media (max-width: 730px) {
  .chain-hero { grid-template-columns: 1fr; padding-block: 38px 34px; }
  .chain-hero h1 { margin-block: 21px 17px; font-size: clamp(49px, 12vw, 69px); }
  .chain-hero h1 span { margin-top: 10px; font-size: clamp(23px, 5.9vw, 34px); }
  .chain-hero .hero-actions { margin-top: 21px; }
  .chain-hero .hero-meta { margin-top: 16px; }
  .participation-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal { padding-block: 27px 30px; }
  .portal-card { padding: 15px; }
  .portal-card ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .chain-reading { padding-block: 28px; }
}
@media (max-width: 560px) {
  .protocol-head, .protocol-foot { padding-inline: 12px; }
  .protocol-chart { padding: 23px 8px; gap: 4px; }
  .protocol-chart strong { font-size: 12px; }
  .protocol-chart small { font-size: 10px; }
}
