main { max-width: 1120px; margin: 0 auto; padding: 24px; }
.historic-intro p { margin: 0 0 8px; }
.historic-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; margin: 16px 0; }
.historic-tools .fam-row { display: grid; gap: 4px; margin: 0; }
.historic-tools .fam-field { width: 100%; box-sizing: border-box; }
.historic-tools .fam-fine { grid-column: 1 / -1; margin: 0; }
.historic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.historic-country { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 12px 20px; padding: 12px 14px; border: 1px solid var(--fam-line, rgba(127, 127, 127, .35)); border-radius: 10px; }
.historic-country h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.historic-country .historic-code { display: block; font-size: .8rem; opacity: .75; font-weight: 400; }
.historic-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.historic-flag { display: grid; gap: 3px; align-content: start; width: 150px; font-size: .8rem; line-height: 1.35; }
.historic-flag .picture { display: flex; align-items: center; justify-content: flex-start; height: 56px; }
.historic-flag img { max-width: 150px; max-height: 56px; height: auto; width: auto; box-shadow: 0 0 0 1px rgba(127, 127, 127, .4); }
.historic-flag .years { font-weight: 600; font-variant-numeric: tabular-nums; }
.historic-flag .status { opacity: .8; }
.historic-flag .status[data-status="historical"] { font-style: italic; }
.historic-flag a { overflow-wrap: anywhere; }
@media (max-width: 700px) { main { padding: 16px; } .historic-country { grid-template-columns: minmax(0, 1fr); } }
.historic-flag .role { font-size: .75rem; opacity: .85; }
.historic-flags > .historic-split { flex: 1 1 100%; }
.historic-split { list-style: none; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px dashed var(--fam-line, rgba(127, 127, 127, .55)); border-radius: 8px; }
.historic-split .split-title { margin: 0 0 8px; font-weight: 600; font-size: .85rem; }
.historic-split .split-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.historic-split .split-column h3 { margin: 0 0 6px; font-size: .85rem; }
.historic-split .split-why { margin-top: 8px; font-size: .8rem; line-height: 1.4; }
.historic-split .split-why p { margin: 0 0 4px; }
.historic-flag .restricted-note { margin: 4px 0 0; padding: 6px 8px; border-left: 3px solid rgba(127, 127, 127, .7); background: rgba(127, 127, 127, .12); font-size: .75rem; line-height: 1.35; }
.historic-flag[data-restricted="true"] { width: 220px; }
@media (max-width: 700px) { .historic-split .split-columns { grid-template-columns: minmax(0, 1fr); } }
.historic-split .split-none { list-style: none; font-size: .8rem; opacity: .8; }
