:root {
  --purple: #522d80;
  --purple-deep: #38165f;
  --orange: #f56600;
  --ink: #20232a;
  --muted: #5c6470;
  --line: #d9dce2;
  --wash: #f5f4f7;
  --white: #fff;
  --shadow: 0 12px 30px rgba(27, 21, 39, .12);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.58; }
a { color: var(--purple); text-underline-offset: .16em; }
a:hover { color: var(--purple-deep); }
button, input, textarea, select { font: inherit; }
button, .button { border-radius: .35rem; border: 1px solid var(--purple); background: var(--purple); color: var(--white); cursor: pointer; font-weight: 700; min-height: 2.75rem; padding: .6rem .95rem; text-decoration: none; }
button:hover, .button:hover { background: var(--purple-deep); color: var(--white); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.button--quiet { background: var(--white); color: var(--purple); }
.button--danger { background: #9e1b32; border-color: #9e1b32; }
.skip-link { background: var(--white); color: var(--purple); left: 1rem; padding: .7rem; position: absolute; top: -4rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.visually-hidden { border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.site-header { background: rgb(46 26 71 / 97%); border-bottom: 1px solid rgb(255 255 255 / 18%); color: var(--white); position: sticky; top: 0; z-index: 20; }
.bar, .wrap { max-width: 1120px; margin: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.bar { align-items: center; display: flex; justify-content: space-between; min-height: 3.75rem; }
.brand { align-items: center; color: var(--white); display: inline-flex; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand-lockup { display: grid; line-height: 1; }
.brand-lockup strong { font-size: 1rem; }
.brand-lockup small { color: rgb(255 255 255 / 72%); font-size: .64rem; font-weight: 700; letter-spacing: .015em; margin-top: .18rem; }
.menu-button { background: transparent; border: 0; display: grid; gap: 5px; height: 44px; min-height: 44px; padding: 0; place-content: center; width: 44px; }
.menu-button span { background: currentColor; border-radius: 2px; display: block; height: 2px; width: 22px; }
.site-nav { background: var(--purple-deep); border-radius: 12px; box-shadow: 0 18px 50px rgb(0 0 0 / 24%); display: none; left: 12px; padding: 8px; position: absolute; right: 12px; top: 60px; }
.site-nav[data-open="true"] { display: grid; }
.site-nav > a, .site-nav__more-trigger, .site-nav__support-trigger { align-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--white); cursor: pointer; display: flex; font-weight: 700; justify-content: flex-start; min-height: 44px; padding: 11px 12px; text-decoration: none; width: 100%; }
.site-nav > a:hover, .site-nav__more-trigger:hover, .site-nav__more-trigger[aria-expanded="true"], .site-nav__support-trigger:hover { background: rgb(255 255 255 / 10%); color: var(--white); }
.site-nav__more { position: relative; }
.site-nav__more-trigger { gap: 12px; justify-content: space-between; }
.site-nav__more-trigger > span { border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; height: 8px; transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease; width: 8px; }
.site-nav__more-trigger[aria-expanded="true"] > span { transform: translateY(2px) rotate(225deg); }
.site-nav__more-menu { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px rgb(0 0 0 / 22%); color: var(--ink); display: grid; margin-top: 5px; overflow: hidden; padding: 6px; }
.site-nav__more-menu[hidden] { display: none; }
.site-nav__more-menu a { align-items: center; border-radius: 7px; display: flex; font-weight: 700; min-height: 44px; padding: 9px 10px; text-decoration: none; }
.site-nav__more-menu a:hover { background: #f1edf5; color: var(--purple-deep); }
.site-nav__more-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; width: 100%; }
.notice { background: #fff2dc; border-bottom: 1px solid #e8bd78; color: #4b3514; font-size: .94rem; padding: .6rem 0; }
.hero { background: radial-gradient(circle at 83% 24%, rgb(245 102 0 / 42%), transparent 31%), linear-gradient(135deg, #2e1a47, var(--purple)); color: var(--white); padding: 4.5rem 0 3.75rem; }
.eyebrow { color: var(--orange); font-size: .85rem; font-weight: 800; letter-spacing: .09em; margin: 0 0 .55rem; text-transform: uppercase; }
.hero .eyebrow { color: #ffd29d; }
h1, h2, h3 { color: var(--purple-deep); line-height: 1.15; }
.hero h1 { color: var(--white); font-family: Georgia, Cambria, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.45rem); margin: 0; max-width: 850px; }
.hero p { font-size: 1.18rem; max-width: 720px; }
.scope { font-size: .93rem !important; opacity: .95; }
.content { padding-bottom: 3.25rem; padding-top: 3rem; }
.section-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; }
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.card img, .article-hero img, .article-body figure img { display: block; height: auto; max-width: 100%; width: 100%; }
.image-fallback { align-items: center; background: linear-gradient(135deg, #eae4f2, #f7e1c6); color: var(--purple-deep); display: flex; font-weight: 800; min-height: 190px; padding: 1.5rem; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.card h2 { font-size: 1.35rem; margin: .25rem 0 .65rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .92rem; }
.card .read-link { font-weight: 800; margin-top: auto; padding-top: 1rem; }
.filters { align-items: end; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(180px, .4fr) auto; margin: 1rem 0 1.5rem; }
label { display: grid; font-weight: 700; gap: .3rem; }
input, textarea, select { border: 1px solid #737987; border-radius: .3rem; color: var(--ink); padding: .63rem; width: 100%; }
textarea { min-height: 10rem; resize: vertical; }
.article { background: var(--white); margin: 2rem auto; max-width: 900px; padding: clamp(1.25rem, 4vw, 4rem); }
.article-header { border-bottom: 1px solid var(--line); margin-bottom: 2rem; padding-bottom: 1.5rem; }
.article h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin: 0 0 1rem; }
.article-summary { font-size: 1.25rem; max-width: 780px; }
.article-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.share { position: relative; }
.share-panel { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .25rem; min-width: 200px; padding: .5rem; position: absolute; right: 0; top: calc(100% + .4rem); z-index: 2; }
.share-panel[hidden] { display: none; }
.share-panel a, .share-panel button { background: transparent; border: 0; color: var(--purple); font-weight: 700; min-height: 2.4rem; padding: .45rem; text-align: left; }
.share-panel button:hover { background: var(--wash); color: var(--purple-deep); }
.share-status { color: var(--muted); font-size: .88rem; min-height: 1.3rem; padding: .25rem .45rem; }
.legacy-note { background: #f2eef8; border-left: 4px solid var(--purple); padding: .9rem 1rem; }
.article-hero { margin: 1.5rem 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .45rem; }
.article-body { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 1.13rem; max-width: 720px; }
.article-body h2, .article-body h3 { font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; margin-top: 2.2rem; }
.article-body li { margin: .4rem 0; }
.article-body figure { margin: 2rem 0; }
.site-footer { background: #28212f; color: var(--white); margin-top: 3rem; padding: 2.2rem 0; }
.site-footer a { color: var(--white); }
.admin-shell { display: grid; gap: 1.5rem; grid-template-columns: 15rem minmax(0, 1fr); padding-top: 2rem; }
.admin-nav { background: var(--white); border: 1px solid var(--line); height: fit-content; padding: 1rem; }
.admin-nav a { display: block; font-weight: 700; padding: .45rem 0; }
.admin-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.3rem); }
.status { border-radius: 999px; display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; padding: .25rem .55rem; text-transform: uppercase; }
.status--published, .status--approved { background: #d7f0dd; color: #164a26; }
.status--draft, .status--changes-requested { background: #f5e7bd; color: #624900; }
.status--in-review { background: #dcecff; color: #12477b; }
.flash { border-left: 4px solid var(--purple); margin: 0 0 1rem; padding: .75rem 1rem; }
.workflow { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.metadata-panel { border: 1px solid var(--line); margin-top: 1.3rem; padding: .8rem 1rem 1rem; }
.metadata-panel summary { color: var(--purple-deep); cursor: pointer; font-weight: 800; }
.metadata-panel > *:not(summary) { margin-top: 1rem; }
.workflow form { display: inline-block; margin: .25rem .35rem .25rem 0; }
.content-blocks { display: grid; gap: 1rem; margin: 1.5rem 0; }
.content-block { border: 1px solid var(--line); margin: 0; padding: 1rem; }
.content-block legend { color: var(--purple-deep); font-weight: 800; padding: 0 .35rem; }
.content-block__preview { background: var(--wash); margin: .75rem 0; max-height: 190px; object-fit: contain; width: 100%; }
.content-block__actions { display: flex; justify-content: flex-end; margin-top: .75rem; }
.block-controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.block-controls button { background: var(--white); color: var(--purple); }
.rich-editor-shell { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.editor-heading { align-items: start; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.editor-heading h2 { margin: 0; }
.editor-heading p { margin: .35rem 0 0; }
.editor-mode { display: flex; gap: .45rem; }
.editor-mode button[aria-pressed="true"] { background: var(--purple); color: var(--white); }
.editor-toolbar { align-items: center; background: var(--wash); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; padding: .45rem; position: sticky; top: .5rem; z-index: 3; }
.editor-toolbar button { align-items: center; background: var(--white); color: var(--purple-deep); display: inline-flex; height: 2.35rem; justify-content: center; min-height: 2.35rem; padding: .32rem; width: 2.35rem; }
.editor-toolbar button:hover { background: #ece5f4; color: var(--purple-deep); }
.editor-toolbar svg { fill: none; height: 1.25rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.25rem; }
.editor-toolbar svg text { fill: currentColor; font-family: Georgia, serif; font-size: 15px; font-weight: 700; stroke: none; }
.editor-status { color: var(--muted); min-height: 1.3rem; padding: .45rem 0; }
.rich-editor, .html-editor { background: var(--white); border: 1px solid #737987; border-radius: .3rem; min-height: 25rem; padding: 1rem; width: 100%; }
.rich-editor { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.62; }
.rich-editor:focus { outline: 3px solid var(--orange); outline-offset: 3px; }
.rich-editor figure { border: 1px solid var(--line); margin: 1.5rem 0; padding: .75rem; }
.rich-editor figure img { display: block; height: auto; max-height: 380px; max-width: 100%; width: auto; }
.rich-editor figcaption { font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; }
.rich-editor figcaption cite { color: var(--muted); display: block; font-style: normal; margin-top: .2rem; }
.image-controls { border-top: 1px solid var(--line); display: flex; gap: .35rem; margin-top: .6rem; padding-top: .6rem; }
.image-controls button { align-items: center; background: var(--white); color: var(--purple-deep); display: inline-flex; height: 2.15rem; justify-content: center; min-height: 2.15rem; padding: .3rem; width: 2.15rem; }
.image-controls button:hover { background: #ece5f4; }
.image-controls svg { fill: none; height: 1.2rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.2rem; }
.html-editor { font-family: Consolas, "Courier New", monospace; font-size: .92rem; line-height: 1.45; resize: vertical; }
dialog { border: 0; border-radius: .5rem; box-shadow: var(--shadow); max-width: min(92vw, 530px); padding: 1.4rem; }
dialog::backdrop { background: rgba(20, 13, 29, .55); }
dialog h2 { margin-top: 0; }
.support-dialog { max-width: min(92vw, 600px); }
.support-dialog__header { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.support-dialog__close { font-size: 1.55rem; line-height: 1; min-height: 2.35rem; padding: .2rem .65rem; }
.admin-section-heading { align-items: start; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.admin-section-heading h1, .admin-section-heading h2 { margin-top: 0; }
.table-filter { margin: 1.25rem 0 .35rem; max-width: 38rem; }
.data-table-shell { margin: .75rem 0 1.25rem; }
.table-scroll-top { overflow-x: auto; overflow-y: hidden; }
.table-scroll-top > div { height: 1px; }
.table-scroll { border: 1px solid var(--line); max-height: 33rem; overflow: auto; }
.admin-table { border-collapse: separate; border-spacing: 0; min-width: 910px; width: 100%; }
.admin-table th, .admin-table td { background: var(--white); border-bottom: 1px solid var(--line); padding: .75rem; text-align: left; vertical-align: top; }
.admin-table thead th { background: #f0ecf5; color: var(--purple-deep); font-size: .86rem; position: sticky; top: 0; z-index: 3; }
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table tbody tr:hover > * { background: #fbfafc; }
.admin-table th:first-child, .admin-table td:first-child { box-shadow: 2px 0 5px rgb(38 24 59 / 8%); left: 0; position: sticky; z-index: 2; }
.admin-table thead th:first-child { z-index: 4; }
.admin-table th[scope="row"] { min-width: 16rem; }
.admin-table th[scope="row"] a { font-weight: 800; }
.admin-table small { color: var(--muted); display: block; font-size: .82rem; margin-top: .28rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 19rem; }
.table-actions form { margin: 0; }
.table-actions button, .table-actions .button { min-height: 2.3rem; padding: .42rem .62rem; }
.table-actions button[disabled] { cursor: not-allowed; opacity: .52; }
.table-input { min-width: 12rem; }
.table-roles { grid-template-columns: repeat(2, max-content); min-width: 19rem; }
.admin-management { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.user-form { border: 1px solid var(--line); display: grid; gap: .75rem; padding: 1rem; }
.user-form h3, .user-form p { margin: 0; }
.role-fieldset { border: 0; display: grid; gap: .4rem; margin: 0; padding: 0; }
.role-fieldset legend { color: var(--purple-deep); font-weight: 800; margin-bottom: .25rem; }
.role-fieldset label { align-items: center; display: flex; font-weight: 600; gap: .45rem; }
.role-fieldset input { width: auto; }
dialog [data-link-form], dialog [data-image-form], dialog [data-list-form] { display: grid; gap: .85rem; }
dialog [data-list-form] > label { align-items: center; grid-template-columns: auto 1fr; }
dialog [data-list-form] input[type="radio"] { width: auto; }
dialog menu { display: flex; gap: .6rem; justify-content: flex-end; margin: .5rem 0 0; padding: 0; }
.form-error { color: #9e1b32; font-weight: 700; margin: 0; min-height: 1.35rem; }
.helper { color: var(--muted); font-size: .92rem; }
.login { background: var(--white); margin: 4rem auto; max-width: 520px; padding: 2rem; }
@media (min-width: 760px) { .menu-button { display: none; } .site-nav, .site-nav[data-open="true"] { align-items: center; background: transparent; box-shadow: none; display: flex; flex: 0 0 auto; gap: 4px; padding: 0; position: static; } .site-nav > a, .site-nav__more-trigger, .site-nav__support-trigger { white-space: nowrap; width: auto; } .site-nav__more { flex: 0 0 auto; } .site-nav__more-menu { margin: 0; position: absolute; right: 0; top: calc(100% + 7px); width: 245px; } }
@media (max-width: 700px) { .filters, .admin-shell { grid-template-columns: 1fr; } .filters button { width: 100%; } }
@media print { .site-header, .notice, .site-footer, .article-actions, .legacy-note, .admin-shell { display: none !important; } body, .article { background: #fff; } .article { box-shadow: none; margin: 0; max-width: none; padding: 0; } a { color: #000; text-decoration: underline; } .article-body a[href]::after { content: " (" attr(href) ")"; font-size: .85em; } .article-hero, .article-body figure { break-inside: avoid; page-break-inside: avoid; } .article-hero img, .article-body figure img { display: block; height: auto; margin: 0 auto; max-height: 6.75in; max-width: 100%; object-fit: contain; width: auto; } }
