
/* ── Antique atlas: ivory sheet, Prussian ink, vermilion plate ────── */
:root {
  --paper: #F7F3EA;
  --paper-deep: #EFE8D8;
  --card: #FFFFFF;
  --ink: #1E2433;
  --ink-soft: #46506A;
  --ink-faint: #666B7E;
  --pru: #2C4A6E;
  --verm: #9E3B24;
  --verm-deep: #7E2E1B;
  --ivory: #FBF6EA;
  --rule: #DCD4C2;
  --rule-ink: #B9AE93;
  --display: 'Cormorant Garamond', Georgia, 'Palatino Linotype', serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --util: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
::selection { background: var(--pru); color: var(--ivory); }
a { color: var(--pru); text-decoration-color: rgba(44, 74, 110, 0.4); text-underline-offset: 2px; }
a:hover { color: var(--verm); text-decoration-color: rgba(158, 59, 36, 0.55); }
a:focus-visible, .x-btn:focus-visible { outline: 2px solid var(--verm); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.22; }
h1 { font-size: 2rem; letter-spacing: 0.005em; }
h2 {
  font-size: 1.5rem; margin: 2em 0 0.55em; padding-top: 0.85em;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.14rem; margin: 1.4em 0 0.4em; font-weight: 700; }
p { margin: 0.9em 0; }
ul, ol { margin: 0.9em 0 0.9em 1.4em; }
li { margin: 0.32em 0; }
li::marker { color: var(--verm); }
img { max-width: 100%; height: auto; }
blockquote {
  margin: 1.3em 0; padding: 0.35em 1.2em;
  border-left: 2px solid var(--pru);
  color: var(--ink-soft); font-style: italic; font-size: 1.02em;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
code { font-family: Consolas, 'SF Mono', monospace; font-size: 0.85em; background: var(--paper-deep); padding: 0.12em 0.4em; }

/* ── layout ── */
.sheet { max-width: 790px; margin: 0 auto; padding: 0 20px 46px; }
.masthead {
  text-align: center; padding: 30px 0 20px;
  border-bottom: 3px double var(--rule-ink); margin-bottom: 0;
}
.masthead__rose { display: block; margin: 0 auto 8px; opacity: 0.88; }
.masthead .site-name {
  display: inline-block; max-width: 100%;
  font-family: var(--display); font-size: 2.05rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.02em; text-decoration: none;
  overflow-wrap: anywhere;
}
.masthead .site-name:hover { color: var(--verm); }
.masthead .site-motto {
  font-family: var(--util); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 7px;
  text-wrap: balance;
}
.site-nav {
  text-align: center; padding: 12px 0 14px; margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.site-nav, .site-nav * { position: static !important; }
.site-nav a {
  display: inline-block; margin: 3px 7px; padding: 1px 2px;
  font-family: var(--util); font-size: 0.8rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--verm); text-decoration: underline; text-underline-offset: 3px; }

.page { padding-bottom: 20px; }
.page h1 { margin: 0.3em 0 0.7em; }

/* ── engraved plates: raw-HTML blocks from the include ── */
.x-widget {
  background: var(--card);
  border: 1px solid rgba(30, 36, 51, 0.7);
  box-shadow:
    inset 0 0 0 3px var(--card),
    inset 0 0 0 4px rgba(44, 74, 110, 0.3),
    0 1px 2px rgba(30, 36, 51, 0.06);
  padding: 15px 19px 13px; margin: 1.7em 0;
}
.x-widget__label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--util); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--pru); margin-bottom: 8px;
}
.x-widget__label::before { content: ""; width: 18px; height: 1px; background: var(--rule-ink); flex: 0 0 auto; }
.x-widget__body { display: block; font-size: 1.06rem; line-height: 1.55; }
.x-widget__body strong { color: var(--ink); }
.x-widget__meta {
  display: block; font-family: var(--util); font-size: 0.76rem;
  color: var(--ink-faint); margin-top: 6px; letter-spacing: 0.02em;
}
.x-widget__cta { display: block; margin-top: 9px; }
.x-widget__cta a, .x-widget--corr .x-widget__body a {
  font-family: var(--util); font-size: 0.82rem; font-weight: 600;
  color: var(--verm); text-decoration: none; letter-spacing: 0.01em;
}
.x-widget__cta a:hover, .x-widget--corr .x-widget__body a:hover { text-decoration: underline; }

/* ── correspondence table (symbol-systems graph) ── */
.x-corr {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.94em;
  background: var(--card); border: 1px solid rgba(30, 36, 51, 0.55);
}
.x-corr th, .x-corr td {
  border: 1px solid var(--rule); padding: 0.5em 0.8em;
  text-align: left; vertical-align: top;
}
.x-corr th {
  background: var(--ink); color: var(--ivory);
  font-family: var(--util); font-weight: 600; font-size: 0.72em;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-color: rgba(30, 36, 51, 0.55);
}
.x-corr tbody tr:nth-child(even) { background: var(--paper); }
.x-corr td a { font-weight: 600; }

/* generic content tables: lighter atlas grid */
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94em; }
th, td { border: 1px solid var(--rule); padding: 0.5em 0.75em; text-align: left; vertical-align: top; }
th {
  background: var(--paper-deep); color: var(--ink);
  font-family: var(--util); font-weight: 600; font-size: 0.82em;
  letter-spacing: 0.06em; text-transform: uppercase;
}
tbody tr:nth-child(even) { background: #F9F5EC; }

/* ── Ad slots (noindex-обёртка из инклюда) ── */
.x-ad { margin: 2.3em 0; }
.x-ad > *:first-child { margin-top: 0; }
.x-ad iframe { max-width: 100%; }

/* ── CTA plate ── */
.x-cta {
  background: var(--verm); text-align: center;
  padding: 26px 20px; margin: 2.3em 0;
  box-shadow: inset 0 0 0 1px rgba(251, 246, 234, 0.28);
}
.x-cta__head {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--ivory); letter-spacing: 0.01em;
}
.x-cta__sub { font-family: var(--util); font-size: 0.86rem; color: rgba(251, 246, 234, 0.8); margin: 6px 0 14px; }
.x-btn {
  display: inline-block; font-family: var(--util); font-size: 0.84rem; font-weight: 600;
  color: var(--verm-deep) !important; background: var(--ivory);
  border: 1px solid var(--ivory); padding: 10px 26px;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
}
.x-btn:hover { background: #FFFFFF; color: var(--verm-deep) !important; }

/* ── footer ── */
.foot-trust {
  border-top: 3px double var(--rule-ink); margin-top: 30px; padding-top: 16px;
  font-family: var(--util); font-size: 0.78rem; color: var(--ink-faint);
  line-height: 1.7; letter-spacing: 0.01em;
}
.foot-trust address { font-style: normal; margin-bottom: 12px; }
.foot-links { text-align: center; font-size: 0.8rem; padding: 14px 0 4px; }
.foot-links a { margin: 0 9px; color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--verm); text-decoration: underline; }
.foot-copy { text-align: center; font-size: 0.74rem; color: var(--ink-faint); padding: 8px 0 8px; }

/* ── mobile ── */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .sheet { padding: 0 15px 34px; }
  .masthead { padding: 26px 0 15px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  .masthead__emblem { width: 31px; height: 31px; }
  .masthead .site-name { font-size: 1.3rem; }
  .masthead .site-motto { font-size: 0.64rem; letter-spacing: 0.12em; }
  .site-nav a { margin: 2px 5px; font-size: 0.72rem; letter-spacing: 0.05em; }
  table { font-size: 0.88em; display: block; overflow-x: auto; }
  .x-corr { display: block; overflow-x: auto; }
  .x-widget { padding: 13px 15px 11px; }
  .x-cta { padding: 21px 15px; }
  .x-cta__head { font-size: 1.24rem; }
  .x-btn { padding: 9px 20px; font-size: 0.78rem; }
}


html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{ overflow-x:hidden; }
img,video,iframe,svg{ max-width:100%; height:auto; }
main,article,section,aside,header,nav,footer{ min-width:0; }
@media (max-width:768px){
  [class*="layout"],[class*="container"],[class*="grid"],[class*="content"],[class*="wrapper"],[class*="main"],[class*="row"]{ min-width:0; }
  pre,table{ min-width:0; max-width:100%; }
  pre{ overflow-x:auto; }
  table{ display:block; overflow-x:auto; }
  code,kbd,samp{ word-break:break-word; }
  [class*="ticker"]{ overflow:hidden; }
  [class*="ticker"] *{ min-width:0; }
}
