/* Percurso de Educadores colours on top of Tagus UI. Only colour tokens change; components come from tagus.css. */
:root, [data-theme="light"] {
  --tg-color-bg: #F4F6F9;
  --tg-color-subtle: #E8ECF2;
  --tg-color-text: #15233D;
  --tg-color-text-muted: #55607A;
  --tg-color-border: #D0D5DD;
  --tg-color-border-strong: #55607A;
  --tg-color-accent: #15233D;
  --tg-color-on-accent: #FFFFFF;
  --tg-color-accent-text: #15233D;
  --tg-color-accent-bg: #FBF0C9;
  --tg-color-link: #0079B8;
  --tg-color-focus: #0079B8;
  --tg-color-info: #005F91;
  --tg-color-info-bg: #DCEEF8;
  --tg-color-success: #1D7A30;
  --tg-color-success-bg: #DDF2E1;
  --tg-color-danger: #B0101C;
  --tg-color-danger-bg: #FCDDE0;
  --ped-pre: #0079B8;
  --ped-pos: #D9603F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tg-color-bg: #0C1424;
    --tg-color-surface: #15233D;
    --tg-color-subtle: #1F2F4D;
    --tg-color-text: #F4F6F9;
    --tg-color-text-muted: #B4BCCB;
    --tg-color-border: #2C3C5C;
    --tg-color-border-strong: #8A95AB;
    --tg-color-accent: #F2C800;
    --tg-color-on-accent: #15233D;
    --tg-color-accent-text: #F2C800;
    --tg-color-accent-bg: #3A3210;
    --tg-color-link: #7FC4EA;
    --tg-color-focus: #7FC4EA;
    --ped-pre: #4FA8DC;
    --ped-pos: #E8705F;
  }
}
[data-theme="dark"] {
  --tg-color-bg: #0C1424;
  --tg-color-surface: #15233D;
  --tg-color-subtle: #1F2F4D;
  --tg-color-text: #F4F6F9;
  --tg-color-text-muted: #B4BCCB;
  --tg-color-border: #2C3C5C;
  --tg-color-border-strong: #8A95AB;
  --tg-color-accent: #F2C800;
  --tg-color-on-accent: #15233D;
  --tg-color-accent-text: #F2C800;
  --tg-color-accent-bg: #3A3210;
  --tg-color-link: #7FC4EA;
  --tg-color-focus: #7FC4EA;
  --ped-pre: #4FA8DC;
  --ped-pos: #E8705F;
}

/* App layout only */
body { margin: 0; min-height: 100dvh; }
.ped-main { width: min(640px, 100%); margin-inline: auto; padding: var(--tg-space-4); }
.ped-wide { width: min(1200px, 100%); }
.ped-topbar { position: relative; z-index: 1; background: #15233D; color: #FFFFFF; border-bottom: 0; }
.ped-topbar .tg-topbar__eyebrow { color: #F2C800; text-transform: uppercase; letter-spacing: 0.06em; }
.ped-topbar .tg-muted { color: #B4BCCB; }
.ped-topbar .tg-button { background: transparent; color: #FFFFFF; border-color: #55607A; }
.ped-logo { height: 40px; width: auto; flex: none; }

/* Template background: Gillwell tartan on the right, the Wood Badge as a watermark */
:root { --ped-strip: clamp(14px, 5vw, 88px); --ped-watermark: #E1E6ED; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ped-watermark: #17243D; } }
[data-theme="dark"] { --ped-watermark: #17243D; }
body { padding-right: var(--ped-strip); }
body::before { content: ""; position: fixed; inset: 0 0 0 auto; width: var(--ped-strip); background: url(/pe-tartan.jpg) center / cover; z-index: 0; }
body::after { content: ""; position: fixed; left: -3vw; bottom: -6vh; width: min(30vw, 300px); aspect-ratio: 350 / 844; background: var(--ped-watermark); -webkit-mask: url(/pe-woodbadge.png) center / contain no-repeat; mask: url(/pe-woodbadge.png) center / contain no-repeat; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
.ped-option { display: flex; padding: var(--tg-space-3); border: var(--tg-border-hairline) solid var(--tg-color-border); border-radius: var(--tg-radius-md); }
.ped-option:has(:checked) { border-color: var(--tg-color-accent); background: var(--tg-color-accent-bg); }
.ped-full { width: 100%; }
.ped-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--tg-space-4); }
body { display: flex; flex-direction: column; } /* footer sits at the bottom of the screen, not under the content */
.ped-main { flex: 1 0 auto; }
.ped-footer { margin-top: var(--tg-space-8); padding: var(--tg-space-4); text-align: center; border-top: 1px solid var(--tg-color-border); }
.tg-list__title, .tg-list__detail { display: block; } /* the pages use spans; Tagus expects block children */
