:root {
  --plum: #5b2a86;
  --plum-dark: #3a1858;
  --violet: #9d57c7;
  --lilac: #f3e8fb;
  --gold: #f4c76b;
  --ink: #2b2433;
  --muted: #6c6275;
  --line: #e4d8ee;
  --bg: #fbf8fd;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: var(--plum-dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: .2em 0 .6em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.site-header {
  background: radial-gradient(circle at 85% 20%, rgba(244, 199, 107, .25), transparent 40%), linear-gradient(120deg, var(--plum-dark), var(--plum) 45%, var(--violet));
  color: #fff;
}
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding-top: 22px; padding-bottom: 18px; }
.logo { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.logo:hover { color: #fff; }
.logo-name { font-family: Georgia, serif; font-style: italic; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; }
.logo-name span { color: var(--gold); }
.logo-tag { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.topnav a { display: block; color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current] { background: rgba(255, 255, 255, .18); color: #fff; }
.topnav a[aria-current] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-top: 26px; padding-bottom: 50px; }
main { min-width: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--muted); }

.intro { display: flow-root; }
.hero-img { float: right; margin: 4px 0 16px 28px; max-width: 42%; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(58, 24, 88, .18); }
.lead { font-size: 1.18rem; color: #3d3346; margin-top: 0; }
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; }
.ficha div { background: var(--lilac); border-radius: 10px; padding: 10px 14px; }
.ficha dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ficha dd { margin: 0; font-weight: 600; color: var(--plum-dark); }

.ad { text-align: center; margin: 28px 0; overflow: visible; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

article ul, article ol { padding-left: 1.3em; }
article li { margin: .35em 0; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); }
.timeline li { padding-left: 18px; position: relative; margin: .8em 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .55em; width: 13px; height: 13px; border-radius: 50%; background: var(--violet); border: 3px solid var(--bg); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 .4em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; font-weight: 600; padding: 12px 16px 4px; color: var(--plum-dark); }
th, td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.source { font-size: .85rem; color: var(--muted); margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(58, 24, 88, .14); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card span { display: block; padding: 8px 10px; font-weight: 600; font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.g-item { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.g-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .2s; }
.g-item:hover img { transform: scale(1.04); }

.faq { margin-top: 2.2em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--plum-dark); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 10px 0 14px; }
.updated { font-size: .85rem; color: var(--muted); margin-top: 2em; }

.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.prevnext a { flex: 1; text-decoration: none; padding: 14px 18px; border-radius: var(--radius); background: var(--lilac); font-weight: 600; }
.prevnext a[rel="next"] { text-align: right; }

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; }
.box h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li a { display: block; padding: 5px 0; text-decoration: none; }
.box li a[aria-current] { font-weight: 700; color: var(--plum-dark); }
.box li a[aria-current]::before { content: "• "; color: var(--violet); }
.ad-sky { position: sticky; top: 16px; margin: 0; }
.ad-small { margin: 0; }

.site-footer { background: var(--plum-dark); color: #e9def2; font-size: .92rem; }
.footer-in { padding-top: 26px; padding-bottom: 26px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer p { margin: 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 8, 32, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; padding-top: 8px; font-size: .95rem; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 10px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .ad-sky { position: static; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 12px; }
  .header-in { padding-top: 16px; padding-bottom: 12px; }
  .topnav { flex: 1 1 100%; min-width: 0; }
  .topnav ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .topnav li { flex: none; }
  .topnav a { padding: 6px 12px; background: rgba(255, 255, 255, .1); }
  .hero-img { float: none; max-width: 220px; margin: 0 auto 16px; }
  .lead { font-size: 1.08rem; }
  .sidebar { grid-template-columns: 1fr; }
  .prevnext { flex-direction: column; }
  .prevnext a[rel="next"] { text-align: left; }
  th, td { padding: 8px 10px; }
}
