
  @view-transition { navigation: auto; }
  @font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Inter"; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Inter"; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "Inter"; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
  @font-face { font-family: "Archivo Black"; src: url(fonts/archivo-black-latin-400-normal.woff2) format("woff2"); font-display: swap; }
  @font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
  @font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

  :root {
    /* Sampled from your sidebar */
    --side-top: #312f2f;  --side-bottom: #201b18;  --side-text: #e0dfde;  --side-muted: #b0aca8;
    --teal: #68bc9c;  --teal-deep: var(--water-deep);  --teal-pale: #d6ebe2;
    --ink: #201b18;  --body: #4f4b48;  --muted: #6b6662;  --paper: #ffffff;  --light: #ecebe8;
    /* Card art palette, mapped onto the sidebar colours */
    --amarillo: #ecebe8;  --azul: #68bc9c;  --rosado: #d6ebe2;  --cielo: #d6ebe2;  --limon: #ecebe8;
    --rosa: var(--water-deep);  --oro: #b8b2a7;  --verde: #2a5f50;  --cream: #f3f1ee;
    --sans: "Inter", "Helvetica Neue", Arial, sans-serif;  --serif: "Source Serif 4", Georgia, serif;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
  ::selection { background: var(--teal); color: var(--ink); }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }

  .layout { display: grid; grid-template-columns: minmax(280px, 26.5%) 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--side-bottom) max(280px, 26.5%), var(--paper) 0); }

  /* ---------- Sidebar (your current layout) ---------- */
  .side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--side-top), var(--side-bottom));
          color: var(--side-text); display: flex; flex-direction: column; align-items: center; padding: 56px 36px 28px; text-align: center; overflow-y: auto; }
  .side img { width: 172px; height: 172px; border-radius: 50%; object-fit: cover; border: 5px solid #4a4542; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .side h1 { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.2; color: #fff; margin: 26px 0 8px; }
  .side .role { margin: 0; font-size: 17px; line-height: 1.45; }
  .side .role span { color: var(--side-muted); }
  .side .pron { font-style: italic; font-size: 14px; color: var(--side-muted); margin: 10px 0 0; }
  .side hr { width: 100%; border: 0; border-top: 1px solid #4a4542; margin: 26px 0; }
  .side h2 { align-self: flex-start; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--side-muted); margin: 0 0 14px; }
  .side ul { list-style: none; margin: 0; padding: 0; align-self: stretch; text-align: left; display: grid; gap: 12px; font-size: 16px; line-height: 1.4; }
  .side li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
  .side li svg { width: 20px; height: 20px; margin-top: 2px; }
  .side .credit { margin-top: auto; padding-top: 26px; font-family: var(--sans); font-size: 13px; color: var(--side-muted); line-height: 1.6; }
  .side .credit a { color: var(--teal); text-decoration: none; }

  /* ---------- Main + tabs ---------- */
  main { min-width: 0; }
  .tabs { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--light); padding: 0 6%; }
  .tabs ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; font-family: var(--sans); font-weight: 500; font-size: 17px; }
  .tabs a { display: block; padding: 20px 0 16px; text-decoration: none; color: #2a2a2a; border-bottom: 3px solid transparent; }
  .tabs a:hover { border-bottom-color: var(--light); }
  .tabs a[aria-current="page"] { border-bottom-color: var(--teal); }

  .content { padding: 48px 6% 72px; max-width: 1180px; }
  .content h2 { font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.1; color: #3e3a37; margin: 0 0 10px; }
  .content .intro { max-width: 62ch; margin: 0 0 34px; color: var(--body); }

  /* ---------- Cards ---------- */
  .tabla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
  .tabla > li { min-width: 0; }
  .play { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
  .loteria-card { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 2 / 3;
                  background: #f9f4e8; border: 3px solid #1e1e1e; border-radius: 10px; padding: 10px; color: #1e1e1e;
                  box-shadow: 4px 4px 0px #d9385a; transition: transform .2s ease, box-shadow .2s ease; }
  .play:hover .loteria-card, .play:focus-visible .loteria-card { transform: translateY(-6px) rotate(-1deg); box-shadow: 7px 7px 0px #d9385a; }
  .play:focus-visible { outline: none; }
  .play:focus-visible .loteria-card { outline: 3px solid var(--teal); outline-offset: 5px; }
  .field { flex: 1; overflow: hidden; position: relative; display: grid; grid-template-rows: auto 1fr auto; border: 2px solid #1e1e1e; background: var(--bg); min-height: 0; }
  .card-number { font-family: var(--sans); font-weight: 800; font-size: 1.1rem; padding: 7px 9px 0; line-height: 1; }
  .art { display: grid; place-items: center; padding: 2px 10px; min-height: 0; }
  .art svg { width: 100%; height: 100%; max-height: 260px; overflow: visible; }
  .card-title { text-align: center; font-family: "Archivo Black", var(--sans); font-weight: 400; letter-spacing: 1px; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.1;
                border-top: 2px solid #1e1e1e; padding: 8px 2px 9px; background: var(--bg); white-space: nowrap; position: relative; }
  .o { stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
  .formal { position: absolute; left: 8px; right: 8px; bottom: calc(2.6em + 16px); margin: 0; padding: 10px 12px; background: var(--cream);
            border: 2px solid var(--side-bottom); box-shadow: 3px 3px 0 var(--side-bottom); font: 600 14px/1.35 var(--sans); color: var(--ink);
            opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
  .play:hover .formal, .play:focus-visible .formal { opacity: 1; transform: none; }
  .caption { font: 500 14px/1.3 var(--sans); color: var(--muted); margin: 0; }
  .caption .full { display: none; }
  .sep { display: inline-block; margin: 0 .45em; }
  @media (hover: none) and (pointer: coarse) { .formal { display: none; } .caption .full { display: block; font: italic 400 13px/1.35 var(--serif); margin-top: 4px; } }

  @media (max-width: 1100px) { .tabla { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 820px) {
    .layout { background: var(--paper); }
    .layout { grid-template-columns: 1fr; }
    .side { position: static; height: auto; padding: 36px 24px 24px; }
    .side img { width: 128px; height: 128px; }
    .side .credit { display: none; }
    .tabs { padding: 0 20px; } .tabs ul { gap: 24px; font-size: 16px; overflow-x: auto; }
    .content { padding: 32px 20px 56px; } .content h2 { font-size: 34px; }
    .tabla { gap: 28px 16px; }
    .card-title { font-size: 11px; letter-spacing: .6px; }
  }
  @media (prefers-reduced-motion: reduce) { .loteria-card, .formal { transition: none; } }

  /* Golden-hour palette, sampled from your photo */
  :root { --ivory: #f4efe6; --night: #161314; --slate: #3b4648; --amber: #e9a55c; --sunset: #fee1ad; --rose: #b14f54; --clay: #ae7062; --leaf: #6f7d4f; }
  .side { background: linear-gradient(180deg, #33393b 0%, #1d1a1b 55%, var(--night) 100%); }
  .layout { background: linear-gradient(90deg, var(--night) max(280px, 26.5%), var(--ivory) 0); }
  .side img { border-color: #4b5254; }
  .side li svg path { fill: var(--amber); }
  .side .credit a { color: var(--sunset); }
  main, .tabs { background: var(--ivory); }
  .tabs { border-bottom-color: #e2d9cb; }
  .tabs a[aria-current="page"] { border-bottom-color: var(--amber); }
  .content h2 { color: #2a2425; } .content .intro { color: #4f4646; }
  :focus-visible { outline-color: var(--amber); }
  ::selection { background: var(--sunset); color: var(--night); }
  .loteria-card { background: #fbf8f2; border-color: var(--night); box-shadow: 0 10px 22px rgba(22,19,20,.16), 0 2px 4px rgba(22,19,20,.1); }
  .play:hover .loteria-card, .play:focus-visible .loteria-card { box-shadow: 0 16px 30px rgba(22,19,20,.2), 0 3px 6px rgba(22,19,20,.12); }
  .field, .card-title { border-color: var(--night); }
  .caption { color: #5e5352; }
  .o { stroke: var(--night); }

  /* Profile photo as a Lotería card */
  .side .portrait { width: 215px; aspect-ratio: 2 / 3; background: #fbf8f2; border: 5px solid #fbf8f2; border-radius: 10px; padding: 8px;
                    box-shadow: 0 12px 28px rgba(0,0,0,.45); transform: rotate(-2deg); }
  .side .portrait-field { height: 100%; border: 3px solid var(--night); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
  .side .portrait-title { font-family: "Archivo Black", var(--sans); font-size: 12.5px; letter-spacing: .6px; color: var(--night); background: #f6d6a2; border-top: 3px solid var(--night); padding: 7px 2px 8px; text-align: center; white-space: nowrap; }
  .side .portrait img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 25%; border: 0; border-radius: 0; box-shadow: none; display: block; }
  @media (max-width: 820px) { .side .portrait { width: 170px; } .side .portrait-title { font-size: 11px; } }

  /* Default colours used inside the card drawings */
  :root { --rosa: #b14f54; --oro: #e9a55c; --verde: #6f7d4f; --azul: #4d6266; --amarillo: #f6d6a2; --rosado: #e8c3bb; --water: #3c4d50; --water-deep: #2a3638; --cream: #fbf8f2; }

/* Second role line under the name */
.side .role-alt { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.side .role-alt span { color: var(--side-muted); font-style: normal; }

/* Profile photo card flips over on click to show the current role */
.side .portrait { display: block; font: inherit; color: inherit; text-align: center; cursor: pointer; perspective: 900px; transition: transform .25s ease, box-shadow .25s ease; }
.side .portrait:hover { transform: rotate(-2deg) translateY(-4px); box-shadow: 0 18px 34px rgba(0,0,0,.5); }
.side .portrait:focus-visible { outline: 3px solid var(--sunset); outline-offset: 4px; }
.side .portrait-inner { position: relative; display: block; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.side .portrait.is-flipped .portrait-inner { transform: rotateY(180deg); }
.side .portrait-field, .side .portrait-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.side .portrait-back { position: absolute; inset: 0; transform: rotateY(180deg); border: 3px solid var(--night); background: #f6d6a2; color: var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 12px; }
.side .pb-title { font-family: "Archivo Black", var(--sans); font-size: 14px; letter-spacing: .6px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 3px solid var(--night); }
.side .pb-org { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; }
.side .pb-at { font-family: var(--serif); font-style: italic; font-size: 14px; color: #5e5352; }
.side .pb-hint { margin-top: 10px; font-family: var(--sans); font-size: 11px; color: #5e5352; }
@media (max-width: 820px) { .side .pb-org { font-size: 15px; } .side .pb-title { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .side .portrait-inner, .side .portrait { transition: none; } }

/* Even line breaks in the sidebar text */
.side h1, .side .role, .side .role-alt, .side .credit { text-wrap: balance; }
