.site-shell .flag-page{padding-bottom:68px;color:var(--ink)}
.site-shell .flag-container{max-width:1190px}
.site-shell .flag-breadcrumb{display:flex;align-items:center;gap:9px;padding:22px 0;color:var(--muted);font-size:12px}
.site-shell .flag-breadcrumb a:hover{color:var(--red)}
.site-shell .flag-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.05fr .95fr;min-height:430px;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at 76% 45%,#651320 0,transparent 42%),linear-gradient(120deg,#111722 0%,#1a202a 58%,#30121a 100%);color:#fff}
.site-shell .flag-hero:after{position:absolute;z-index:-1;right:0;bottom:0;left:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);content:""}
.site-shell .flag-hero-copy{align-self:center;padding:clamp(34px,6vw,76px)}
.site-shell .flag-eyebrow,.site-shell .flag-section-label{display:flex;align-items:center;gap:9px;color:#ef6872;font-size:10px;font-weight:800;letter-spacing:.14em}
.site-shell .flag-eyebrow i{width:8px;height:8px;border-radius:50%;background:#ed303c;box-shadow:0 0 0 5px rgba(237,48,60,.17)}
.site-shell .flag-hero h1{margin:20px 0 14px;font-size:clamp(43px,6vw,70px);line-height:1.02;letter-spacing:-.055em;color:#fff}
.site-shell .flag-hero-copy>p{max-width:510px;margin:0;color:#c2cad5;font-size:16px;line-height:1.8}
.site-shell .flag-hero-actions{display:flex;align-items:center;gap:22px;margin-top:28px}
.site-shell .flag-primary-action{display:inline-flex;align-items:center;gap:15px;padding:13px 17px;border-radius:7px;background:#ed303c;color:#fff;font-size:12px;font-weight:800}
.site-shell .flag-primary-action:hover{background:#ce1f2d}
.site-shell .flag-text-action{color:#e6ebf2;font-size:12px;font-weight:700}
.site-shell .flag-text-action:hover{color:#ff858d}
.site-shell .flag-hero-art{position:relative;display:grid;min-width:0;place-items:center;overflow:hidden}
.site-shell .flag-hero-art:before{position:absolute;inset:10% 4% 10% 0;border-radius:50%;background:radial-gradient(circle,rgba(237,48,60,.18),transparent 67%);content:""}
.site-shell .flag-orbit{position:absolute;width:min(72%,380px);aspect-ratio:1;border:1px solid rgba(255,255,255,.08);border-radius:50%}
.site-shell .flag-orbit-two{width:min(58%,300px);border-color:rgba(255,255,255,.055)}
.site-shell .flag-illustration{position:relative;width:min(100%,530px);height:auto;max-height:100%;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(0,0,0,.23));animation:flag-float 7s ease-in-out infinite}
.site-shell .flag-art-caption{position:absolute;right:clamp(22px,5vw,58px);bottom:36px;color:rgba(255,255,255,.52);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
@keyframes flag-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
.site-shell .flag-chapters{position:sticky;z-index:5;top:0;display:flex;gap:clamp(18px,3vw,38px);overflow-x:auto;margin:14px 0 0;padding:16px 4px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 93%,transparent);backdrop-filter:blur(12px);scrollbar-width:none}
.site-shell .flag-chapters::-webkit-scrollbar{display:none}
.site-shell .flag-chapters a{flex:0 0 auto;color:var(--muted);font-size:11px;font-weight:700}
.site-shell .flag-chapters a:hover,.site-shell .flag-chapters a:focus-visible{color:var(--red)}
.site-shell .flag-section{scroll-margin-top:76px;margin-top:74px}
.site-shell .flag-section-label{justify-content:flex-start;color:var(--red);font-size:9px}
.site-shell .flag-section-label span{color:var(--muted);font-size:9px}
.site-shell .flag-intro{display:grid;grid-template-columns:.78fr 1.22fr;gap:40px;padding:0 clamp(12px,5vw,58px)}
.site-shell .flag-intro-copy h2,.site-shell .flag-section-heading h2,.site-shell .flag-measure-copy h2,.site-shell .flag-respect h2{margin:12px 0 16px;font-size:clamp(27px,3.5vw,40px);line-height:1.14;letter-spacing:-.04em}
.site-shell .flag-intro-copy p,.site-shell .flag-section-heading>p,.site-shell .flag-measure-copy>p,.site-shell .flag-respect p{color:var(--muted);font-size:14px;line-height:1.9}
.site-shell .flag-intro-copy p:first-of-type{font-size:16px;color:var(--ink)}
.site-shell .flag-section-heading{display:flex;align-items:end;justify-content:space-between;gap:38px;margin-bottom:27px}
.site-shell .flag-section-heading h2{margin-bottom:0}
.site-shell .flag-section-heading>p{max-width:475px;margin:0}
.site-shell .flag-timeline{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.site-shell .flag-timeline:before{position:absolute;top:21px;right:14%;left:14%;height:1px;background:var(--line);content:""}
.site-shell .flag-timeline article{position:relative;padding:0 20px 21px 0}
.site-shell .flag-year{position:relative;z-index:1;display:grid;width:42px;height:42px;place-items:center;border:1px solid color-mix(in srgb,var(--red) 38%,var(--line));border-radius:50%;background:var(--surface);color:var(--red);font-size:10px;font-weight:800}
.site-shell .flag-timeline h3,.site-shell .flag-symbol-card h3{margin:17px 0 8px;font-size:16px;letter-spacing:-.02em}
.site-shell .flag-timeline p,.site-shell .flag-symbol-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.site-shell .flag-symbols-section{padding:36px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.site-shell .flag-symbol-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.site-shell .flag-symbol-card{min-height:185px;padding:20px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}
.site-shell .symbol-swatch{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;font-size:24px;font-weight:700}
.site-shell .symbol-red{background:#e30a17;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.site-shell .symbol-crescent,.site-shell .symbol-star{background:var(--soft);color:var(--red)}
.site-shell .flag-symbol-card h3{margin-top:16px}
.site-shell .flag-measure-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;padding:clamp(24px,5vw,54px);border-radius:16px;background:var(--soft)}
.site-shell .flag-measure-copy h2{max-width:440px}
.site-shell .flag-measure-copy>p{max-width:490px}
.site-shell .flag-ratio{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;max-width:300px;margin-top:24px;padding-top:19px;border-top:1px solid var(--line)}
.site-shell .flag-ratio span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.09em}
.site-shell .flag-ratio strong{font-size:13px}
.site-shell .flag-ratio i{grid-column:1/-1;height:1px;margin:6px 0;background:var(--line)}
.site-shell .flag-measure-note{display:block;margin-top:14px;color:var(--muted);font-size:11px}
.site-shell .flag-measure-diagram{padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:center}
.site-shell .flag-measure-diagram svg{display:block;width:min(100%,450px);height:auto;margin:auto;overflow:visible}
.site-shell .flag-measure-diagram svg text{fill:var(--ink);font-family:inherit;font-size:15px;font-weight:700}
.site-shell .flag-measure-diagram .measure-line{fill:none;stroke:var(--muted);stroke-width:1.5}
.site-shell .flag-measure-diagram>span{color:var(--muted);font-size:10px}
.site-shell .flag-ratio-diagram{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:25px auto;align-items:center;max-width:450px;margin:0 auto 7px}
.site-shell .flag-ratio-diagram img{display:block;width:100%;height:auto;aspect-ratio:470/264;object-fit:contain}
.site-shell .flag-diagram-length{grid-column:2;text-align:center;color:var(--ink);font-size:11px;font-weight:800}
.site-shell .flag-diagram-width{grid-column:1;grid-row:2;justify-self:center;writing-mode:vertical-rl;transform:rotate(180deg);color:var(--ink);font-size:11px;font-weight:800}
.site-shell .flag-respect{display:grid;grid-template-columns:58px 1fr;gap:23px;align-items:start;padding:34px;border:1px solid color-mix(in srgb,var(--red) 22%,var(--line));border-radius:15px;background:color-mix(in srgb,var(--red) 5%,var(--surface))}
.site-shell .flag-respect-mark{display:grid;width:50px;height:50px;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--red) 12%,var(--surface));color:var(--red);font-size:22px}
.site-shell .flag-respect h2{font-size:clamp(23px,3vw,31px)}
.site-shell .flag-respect p{max-width:800px}
.site-shell .flag-respect a{display:inline-flex;gap:8px;margin-top:4px;color:var(--red);font-size:12px;font-weight:800}
.site-shell .flag-source-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.site-shell .flag-source-links a{display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:10px;min-height:84px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);transition:border-color .18s,transform .18s}
.site-shell .flag-source-links a:hover{transform:translateY(-2px);border-color:var(--red)}
.site-shell .flag-source-links a>span{color:var(--red);font-size:10px;font-weight:800}
.site-shell .flag-source-links strong{font-size:11px;line-height:1.5}
.site-shell .flag-source-links b{color:var(--muted);font-size:14px}
.site-shell .flag-page-end{display:flex;justify-content:space-between;gap:15px;margin-top:48px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.site-shell .flag-page-end a{color:var(--red);font-weight:800}
.site-shell .flag-nav-link{gap:8px}
.site-shell .flag-nav-symbol{display:block;width:30px;height:17px;flex:0 0 auto;object-fit:contain;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.site-shell .flag-nav-link[aria-current="page"]{outline:2px solid rgba(255,255,255,.6);outline-offset:2px}
@media(max-width:900px){.site-shell .flag-hero{grid-template-columns:1fr .8fr;min-height:370px}.site-shell .flag-hero-copy{padding:38px}.site-shell .flag-section{margin-top:58px}.site-shell .flag-intro{gap:25px;padding:0 10px}.site-shell .flag-symbols-section{padding:25px}.site-shell .flag-source-links{grid-template-columns:1fr}.site-shell .flag-source-links a{min-height:65px}}
@media(max-width:680px){.site-shell .flag-page{padding-bottom:44px}.site-shell .flag-breadcrumb{padding:16px 0}.site-shell .flag-hero{grid-template-columns:1fr;min-height:0;border-radius:13px}.site-shell .flag-hero-copy{padding:34px 25px 0}.site-shell .flag-hero h1{font-size:47px}.site-shell .flag-hero-copy>p{font-size:14px}.site-shell .flag-hero-art{min-height:230px}.site-shell .flag-illustration{width:min(100%,420px)}.site-shell .flag-art-caption{right:22px;bottom:18px}.site-shell .flag-chapters{top:0;gap:22px;margin-top:9px;padding:13px 3px}.site-shell .flag-section{margin-top:45px;scroll-margin-top:60px}.site-shell .flag-intro{grid-template-columns:1fr;gap:16px;padding:0}.site-shell .flag-section-heading{display:block}.site-shell .flag-section-heading>p{margin-top:13px}.site-shell .flag-timeline{grid-template-columns:1fr;gap:8px}.site-shell .flag-timeline:before{top:23px;bottom:28px;left:20px;width:1px;height:auto}.site-shell .flag-timeline article{display:grid;grid-template-columns:43px 1fr;gap:12px;padding:0 0 17px}.site-shell .flag-timeline h3{margin:1px 0 6px}.site-shell .flag-symbols-section{padding:20px}.site-shell .flag-symbol-grid{grid-template-columns:1fr}.site-shell .flag-symbol-card{min-height:auto}.site-shell .flag-measure-section{grid-template-columns:1fr;gap:23px;padding:22px}.site-shell .flag-measure-diagram{padding:7px}.site-shell .flag-measure-diagram svg text{font-size:17px}.site-shell .flag-respect{grid-template-columns:1fr;gap:15px;padding:23px}.site-shell .flag-page-end{flex-direction:column;margin-top:36px}}
@media(prefers-reduced-motion:reduce){.site-shell .flag-illustration{animation:none}.site-shell .flag-source-links a{transition:none}.site-shell .flag-source-links a:hover{transform:none}}

/* Extended reference topics and accessible measurement table */
.site-shell .flag-history-source{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.8}
.site-shell .flag-history-source a,.site-shell .flag-intro-copy a{color:var(--red);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.site-shell .flag-timeline-detailed{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.site-shell .flag-timeline-detailed:before{display:none}
.site-shell .flag-timeline-detailed article{min-width:0;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.site-shell .flag-timeline-detailed .flag-year{width:auto;height:auto;min-height:27px;display:inline-flex;padding:0 9px;border-radius:6px;background:var(--soft);font-size:9px}
.site-shell .flag-timeline-detailed h3{font-size:14px;line-height:1.4}
.site-shell .flag-legend-note{display:grid;grid-template-columns:190px 1fr;gap:18px;margin-top:18px;padding:16px 18px;border-left:3px solid var(--red);border-radius:0 9px 9px 0;background:var(--bg)}
.site-shell .flag-legend-note strong{font-size:12px}
.site-shell .flag-legend-note p{margin:0;color:var(--muted);font-size:12px;line-height:1.75}
.site-shell .flag-dimension-table-wrap{grid-column:1/-1;min-width:0;margin-top:4px;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.site-shell .flag-dimension-table-wrap h3{margin:0 0 14px;font-size:16px}
.site-shell .flag-dimension-table-scroll{width:100%;overflow-x:auto}
.site-shell .flag-dimension-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.site-shell .flag-dimension-table :is(th,td){padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.site-shell .flag-dimension-table thead th{background:var(--soft);color:var(--muted);font-size:10px;letter-spacing:.04em}
.site-shell .flag-dimension-table tbody th{width:54px;color:var(--red)}
.site-shell .flag-dimension-table tbody td:nth-child(2){width:110px;font-weight:800;white-space:nowrap}
.site-shell .flag-dimension-table-wrap>p{margin:11px 0 0;color:var(--muted);font-size:10px;line-height:1.6}
.site-shell .flag-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.site-shell .flag-rule-card{display:grid;grid-template-columns:34px 1fr;gap:12px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.site-shell .flag-rule-index{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:var(--soft);color:var(--red);font-size:10px;font-weight:800}
.site-shell .flag-rule-card h3{margin:2px 0 6px;font-size:13px}
.site-shell .flag-rule-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.75}
.site-shell .flag-relative-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.site-shell .flag-relative-grid article{display:grid;grid-template-columns:88px 1fr;align-items:center;gap:15px;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.site-shell .flag-relative-grid h3{margin:0 0 6px;font-size:13px}
.site-shell .flag-relative-grid p{margin:0;color:var(--muted);font-size:11px;line-height:1.65}
.site-shell .flag-mini-flag{position:relative;display:block;width:88px;height:56px;overflow:hidden;border-radius:3px;box-shadow:0 3px 10px rgba(0,0,0,.1)}
.site-shell .flag-mini-flag i,.site-shell .flag-mini-flag b{position:absolute;z-index:1;font-style:normal;line-height:1}
.site-shell .flag-tunisia{background:#e30a17}
.site-shell .flag-tunisia:before{position:absolute;top:50%;left:50%;width:31px;height:31px;border-radius:50%;background:white;content:"";transform:translate(-50%,-50%)}
.site-shell .flag-tunisia i{top:50%;left:50%;color:#e30a17;font-size:22px;transform:translate(-48%,-53%)}
.site-shell .flag-tunisia b{top:50%;left:50%;color:#e30a17;font-size:9px;transform:translate(45%,-55%)}
.site-shell .flag-azerbaijan{background:linear-gradient(to bottom,#00a3dd 0 33.33%,#ed2939 33.33% 66.66%,#3f9c35 66.66%)}
.site-shell .flag-azerbaijan i{top:50%;left:51%;color:white;font-size:18px;transform:translate(-52%,-54%)}
.site-shell .flag-azerbaijan b{top:50%;left:60%;color:white;font-size:8px;transform:translate(-20%,-51%)}
.site-shell .flag-trnc{background:linear-gradient(to bottom,#fff 0 22%,#e30a17 22% 32%,#fff 32% 68%,#e30a17 68% 78%,#fff 78%)}
.site-shell .flag-trnc i{top:50%;left:46%;color:#e30a17;font-size:19px;transform:translate(-50%,-54%)}
.site-shell .flag-trnc b{top:50%;left:58%;color:#e30a17;font-size:8px;transform:translate(-10%,-50%)}
.site-shell .flag-culture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.site-shell .flag-culture-grid article{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.site-shell .flag-culture-grid article>span{color:var(--red);font-size:9px;font-weight:800;letter-spacing:.1em}
.site-shell .flag-culture-grid h3{margin:11px 0 8px;font-size:15px}
.site-shell .flag-culture-grid p{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.8}
.site-shell .flag-culture-grid a{color:var(--red);font-size:10px;font-weight:800}
.site-shell .flag-source-links{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.site-shell .flag-timeline-detailed{grid-template-columns:repeat(2,minmax(0,1fr))}.site-shell .flag-relative-grid{grid-template-columns:1fr}.site-shell .flag-source-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.site-shell .flag-timeline-detailed{grid-template-columns:1fr}.site-shell .flag-timeline-detailed article{padding:14px}.site-shell .flag-legend-note{grid-template-columns:1fr;gap:7px}.site-shell .flag-dimension-table-wrap{padding:14px}.site-shell .flag-dimension-table{min-width:560px}.site-shell .flag-rules,.site-shell .flag-culture-grid,.site-shell .flag-source-links{grid-template-columns:1fr}.site-shell .flag-relative-grid article{grid-template-columns:76px 1fr}.site-shell .flag-mini-flag{width:76px;height:49px}}
