/* The ArchiMate pages' one stylesheet (`gen-archimate-pages.ts`). The layer
   swatches are ArchiMate's own colours (Archi's defaults), so a reader who
   knows the notation reads them at a glance; everything else follows the
   reader's colour scheme. A view's drawing keeps its white ground in either
   scheme, since its colours are the notation's. */
:root { color-scheme: light dark; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; padding: 0 16px; }
.am { max-width: 60rem; margin: 1.5rem auto 3rem; }
.am-wide { max-width: none; }
.am h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.am h2 { font-size: 1.1rem; margin-top: 1.75rem; border-bottom: 1px solid rgba(128,128,128,.35); padding-bottom: .2rem; }
.am-up { margin: 0 0 .5rem; font-size: .9rem; }
.am-kind { margin-top: 0; opacity: .8; }
.am-type { opacity: .75; font-size: .9rem; }
.am-els, .am-views, .am-rels { list-style: none; padding: 0; columns: 18rem; column-gap: 2rem; }
.am-rels { columns: auto; }
.am-els li, .am-views li, .am-rels li { margin: .15rem 0; break-inside: avoid; }
.am-layer { border-left: .6rem solid; padding-left: .5rem; }
.am-layer-strategy { border-left-color: #f5deaa; }
.am-layer-business { border-left-color: #ffffb5; }
.am-layer-application { border-left-color: #b5ffff; }
.am-layer-technology, .am-layer-physical { border-left-color: #c9e7b7; }
.am-layer-motivation { border-left-color: #ccccff; }
.am-layer-implementation-migration { border-left-color: #ffe0e0; }
.am-layer-other { border-left-color: #bbb; }
.am-figure { margin: 0; overflow: auto; border: 1px solid rgba(128,128,128,.35); border-radius: 4px; background: #fff; }
.am-figure object { display: block; max-width: none; }
.am-props { border-collapse: collapse; font-size: .9rem; margin: .5rem 0; }
.am-props th, .am-props td { border-bottom: 1px solid rgba(128,128,128,.3); padding: .25rem .5rem; text-align: left; vertical-align: top; }
.am-ends { font-size: 1.05rem; }
.am-error { color: #b42318; font-weight: 600; }
.am-links { margin-top: 2rem; font-size: .9rem; }
/* The Contents card (contents-card.css, issue #1885) floats at the top right of a page's body, as on the IG sites; lists and headings beside it narrow round it. */
.am-body>.igi-contents{float:right;width:18rem;margin:0 0 1rem 1.5rem}
.am-body>.igi-contents~h2,.am-body>.igi-contents~ul,.am-body>.igi-contents~.am-text,.am-body>.igi-contents~table{display:flow-root}
@media (max-width:50rem){.am-body>.igi-contents{float:none;width:auto;margin:1rem 0}}
.am-from { margin-top: -.5rem; font-size: .95em; }
/* A view's figure as the source publication drew it, and the switch between it and the model's view (`asDrawnSwitch`, gen-archimate-pages.ts): CSS only, pill tabs over visually hidden radios; with no `:has`, both drawings show. */
.am-switch { border: 0; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.am-switch legend { float: left; margin-right: .4rem; font-size: .9rem; opacity: .8; padding: 0; }
.am-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.am-switch label { cursor: pointer; padding: .25rem .9rem; border: 1px solid rgba(128,128,128,.55); border-radius: 999px; font-size: .9rem; }
.am-switch input:checked + label { background: #1a5fb4; border-color: #1a5fb4; color: #fff; }
.am-switch input:focus-visible + label { outline: 2px solid #1a5fb4; outline-offset: 2px; }
.am-as-drawn { margin-bottom: 1rem; }
.am-as-drawn svg { display: block; max-width: 100%; height: auto; }
.am-as-drawn figcaption { font-size: .85rem; padding: .3rem .5rem; color: #333; }
.am:has(#am-show-drawn:checked) .am-body .am-figure { display: none; }
.am:has(#am-show-model:checked) .am-as-drawn { display: none; }
/* The Contents card (`contents-card.js`, issue #1885): the IG sites' card
   (fhir-harness#361), a neutral card at the top right that lists the page's
   sections. Colours fall back to plain values where a page sets no IG tokens. */
.igi-contents{border:1px solid var(--iga-line,rgba(128,128,128,.35));border-radius:8px;background:var(--iga-bg,transparent);box-shadow:0 1px 3px rgba(0,0,0,.08);padding:.75rem 1rem;font-size:.9rem;box-sizing:border-box}
.igi-contents-title{margin:0 0 .5rem;font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;opacity:.75;color:var(--iga-muted,inherit)}
.igi-contents ul{list-style:none;margin:0;padding:0}
.igi-contents li{display:flex;align-items:baseline;gap:.5rem;margin:.2rem 0;padding:0}
.igi-contents li::before{content:none;display:none}
.igi-contents li[hidden]{display:none}
.igi-contents li>a{flex:1;min-width:0;text-decoration:none;overflow-wrap:anywhere}
.igi-contents li>a:hover{text-decoration:underline}
.igi-n{font-size:.78rem;font-variant-numeric:tabular-nums;background:var(--iga-soft,rgba(128,128,128,.15));border-radius:1em;padding:0 .45em}
@media print{.igi-contents{box-shadow:none}}
@media (prefers-color-scheme: dark) { :root:not([data-fa-scheme="light"]) { color-scheme: dark; } }
  :root[data-fa-scheme="dark"] { color-scheme: dark; }
  :root[data-fa-scheme="light"] { color-scheme: light; } :root[data-fa-scheme="dark"] { color-scheme: dark; }
