/* Azure foundation case-study composition.
   The page extends the existing editorial system with architecture-specific
   surfaces. Solid cyan/purple borders represent implemented configuration;
   dashed amber borders are reserved for explicitly proposed extensions. */
.azure-foundation-page .case-hero h1 { max-width: 980px; letter-spacing: -.045em; line-height: 1.04; }
.azure-foundation-page .case-hero h1 span { color: var(--cyan); }
.azure-foundation-page .case-context { border-color: var(--cyan); }
.article-byline { color: #aaa5b8; font: .875rem/1.7 Consolas, monospace; }
.azure-foundation-page .case-hero .project-links { margin-top: 20px; }
.foundation-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.foundation-scope-grid article { padding: 27px; border: 1px solid #4d8191; border-top: 2px solid var(--cyan); background: #101c27; }
.foundation-scope-grid .foundation-scope-out { border-color: #6d4f75; border-top-color: #d47ac6; background: #191426; }
.foundation-scope-grid .eyebrow { margin-bottom: 12px; font-size: .75rem; }
.foundation-scope-grid h3 { margin-bottom: 14px; font-size: 1.25rem; line-height: 1.5; }
.foundation-scope-grid ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.foundation-scope-grid li + li { margin-top: 8px; }

/* The architecture remains readable as ordered content when the decorative
   peering connectors disappear on smaller screens or in print. */
.azure-network-figure { margin: 36px 0 0; padding: 32px; border: 1px solid var(--line); background: linear-gradient(145deg, #111722, #0d121d 74%); }
.azure-network-figure figcaption { max-width: 58rem; margin-bottom: 27px; }
.azure-network-figure figcaption h3 { margin-bottom: 10px; font-size: 1.4rem; line-height: 1.5; }
.azure-network-figure figcaption p { margin: 0; font-size: 1rem; line-height: 1.8; }
.azure-allocation { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 24px; padding: 17px 20px; border-left: 2px solid var(--purple); background: #191525; }
.azure-allocation span { color: #c5a8d9; font: .75rem/1.6 Consolas, monospace; letter-spacing: .08em; }
.azure-allocation strong { color: var(--ink); font: 600 1rem/1.6 Consolas, monospace; }
.azure-allocation small { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.azure-network-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 30px; padding-top: 4px; }
.azure-network-node { position: relative; min-width: 0; padding: 24px; border: 1px solid #4d8191; background: #101e28; }
.azure-hub-node { grid-column: 1 / -1; width: min(34rem, 62%); margin-inline: auto; border-color: var(--purple); background: #181425; }
.azure-hub-node::before,
.azure-hub-node::after { content: ""; position: absolute; top: 100%; width: 1px; height: 45px; background: #827590; }
.azure-hub-node::before { left: 25%; transform: rotate(25deg); transform-origin: top; }
.azure-hub-node::after { right: 25%; transform: rotate(-25deg); transform-origin: top; }
.azure-optional-node { border-style: dashed; border-color: #d6a257; }
.azure-network-node .eyebrow { margin-bottom: 9px; font-size: .75rem; }
.azure-network-node h3 { margin-bottom: 8px; font-size: 1.35rem; }
.azure-network-node > strong { display: block; margin-bottom: 18px; color: var(--cyan); font: 600 1rem/1.6 Consolas, monospace; }
.azure-network-node dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.azure-network-node dt { margin-bottom: 5px; color: #aaa5b8; font-size: .8rem; }
.azure-network-node dd { margin: 0; color: #ded7e7; font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.azure-architecture-legend { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 25px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.azure-architecture-legend span { display: inline-flex; align-items: center; gap: 9px; }
.azure-architecture-legend i { width: 16px; height: 10px; border: 1px solid var(--cyan); }
.azure-architecture-legend .legend-optional { border-color: #d6a257; border-style: dashed; }
.azure-architecture-legend .legend-deny { border-color: #d47ac6; background: #d47ac62e; }
.azure-figure-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #aaa5b8; font-size: .875rem; line-height: 1.75; }

.azure-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.azure-decision-grid article { min-width: 0; padding: 25px; border: 1px solid var(--line); background: var(--panel); }
.azure-decision-grid span { display: block; margin-bottom: 12px; color: var(--purple); font: 600 .8rem/1.5 Consolas, monospace; letter-spacing: .08em; }
.azure-decision-grid h3 { margin-bottom: 10px; font-size: 1.18rem; line-height: 1.5; }
.azure-decision-grid p { margin: 0; font-size: 1rem; line-height: 1.8; }

.azure-table-wrap { overflow-x: auto; max-width: 100%; margin-top: 28px; scrollbar-color: #76618b #0c101e; }
.azure-table-wrap:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.azure-boundary-table { width: 100%; min-width: 47rem; border-collapse: collapse; text-align: left; font-size: 1rem; line-height: 1.8; }
.azure-boundary-table caption { padding-bottom: 18px; color: var(--muted); text-align: left; }
.azure-boundary-table th, .azure-boundary-table td { padding: 20px; border: 1px solid var(--line); vertical-align: top; }
.azure-boundary-table thead th { color: var(--cyan); background: #111c29; }
.azure-boundary-table tbody th { width: 18%; color: var(--ink); background: #131522; font-weight: 500; }
.azure-boundary-table td { color: var(--muted); }
.azure-boundary-table td:nth-child(2) { width: 34%; }
.section-source { margin: 24px 0 0; }
.section-source .text-link { display: inline-block; min-height: 44px; padding-block: 9px; }

.foundation-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.foundation-control-grid article { padding: 26px; border: 1px solid var(--line); background: #111520; }
.control-state { margin: 0 0 13px; font: 600 .75rem/1.6 Consolas, monospace; letter-spacing: .08em; }
.control-state-implemented { color: var(--cyan); }
.control-state-boundary { color: #d6a257; }
.foundation-control-grid h3 { margin-bottom: 11px; font-size: 1.22rem; }
.foundation-control-grid p:last-child { margin: 0; font-size: 1rem; line-height: 1.8; }

.azure-trust-flow { margin-top: 32px; padding: 30px; border: 1px solid var(--line); background: var(--panel); }
.azure-trust-flow figcaption { margin-bottom: 24px; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.azure-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.trust-node { position: relative; padding: 23px; border: 1px solid var(--cyan); background: #101e28; }
.trust-node::after { content: ""; position: absolute; top: 50%; left: 100%; width: 30px; height: 1px; background: #81768f; }
.trust-node:last-child::after { content: none; }
.trust-node-proposed { border-color: #d6a257; border-style: dashed; background: #1a181c; }
.trust-node .eyebrow { margin-bottom: 10px; font-size: .7rem; color: var(--cyan); }
.trust-node-proposed .eyebrow { color: #d6a257; }
.trust-node h3 { margin-bottom: 9px; font-size: 1.15rem; }
.trust-node p:last-child { margin: 0; font-size: .95rem; line-height: 1.75; }
.azure-trust-flow > p { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #aaa5b8; font-size: .875rem; line-height: 1.75; }

.azure-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.azure-evidence-grid article { min-width: 0; padding: 25px; border-top: 2px solid var(--purple); background: var(--panel); }
.azure-evidence-grid article:nth-child(2) { border-color: var(--cyan); }
.azure-evidence-grid article:nth-child(3) { border-color: #d47ac6; }
.azure-evidence-number { margin: 0 0 15px; color: var(--purple); font: 650 clamp(2.2rem, 4vw, 3rem)/1.2 Consolas, monospace; letter-spacing: -.05em; overflow-wrap: anywhere; }
.azure-evidence-grid article:nth-child(2) .azure-evidence-number { color: var(--cyan); }
.azure-evidence-grid article:nth-child(3) .azure-evidence-number { color: #e9a7d0; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.azure-evidence-grid h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.5; }
.azure-evidence-grid p:last-child { margin: 0; font-size: 1rem; line-height: 1.8; }
.evidence-checklist { margin-top: 26px; padding: 27px; border: 1px solid #4b7887; background: #101c27; }
.evidence-checklist h3 { margin-bottom: 15px; font-size: 1.22rem; }
.evidence-checklist ul { columns: 2; column-gap: 46px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.evidence-checklist li { break-inside: avoid; margin-bottom: 9px; }
.evidence-links { margin-top: 25px; }
.azure-takeaway { border-color: #4d8191; background: linear-gradient(145deg, #161426, #101d27); }

@media (max-width: 62rem) {
  .azure-network-node dl { grid-template-columns: minmax(0, 1fr); }
  .azure-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-node::after { top: 100%; left: 50%; width: 1px; height: 30px; }
  .azure-evidence-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .foundation-scope-grid, .azure-decision-grid, .foundation-control-grid { grid-template-columns: minmax(0, 1fr); }
  .azure-network-figure, .azure-trust-flow { padding: 22px 18px; }
  .azure-allocation { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .azure-network-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .azure-hub-node { grid-column: auto; width: auto; }
  .azure-hub-node::before, .azure-hub-node::after { content: none; }
  .evidence-checklist ul { columns: 1; }
}
@media print {
  .azure-network-figure, .azure-decision-grid article, .foundation-control-grid article, .trust-node, .azure-evidence-grid article { break-inside: avoid; }
  .azure-table-wrap { overflow: visible; }
  .azure-boundary-table { min-width: 0; }
}
