/* MOVEment - brand stylesheet (v016).
   Palette and type from the studio's brand pack (Paleta de Cores; Alethia
   Next + Montserrat, both self-hosted: no request leaves for Google Fonts,
   so no student IP address goes to a third party - privacy by design).
   Kept in a static file, not inline, so a Content-Security-Policy without
   'unsafe-inline' styles stays possible later. */

@font-face { font-family: "Alethia Next"; src: url("../brand/fonts/alethianext-300.861113ea8985.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Alethia Next"; src: url("../brand/fonts/alethianext-300-italic.9ee20d3d7f67.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../brand/fonts/montserrat-400.be4695c3152f.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../brand/fonts/montserrat-500.bc32ae09211d.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../brand/fonts/montserrat-600.f17c48a3b9da.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --deep: #102d14;      /* text, primary buttons */
  --green: #617358;     /* accents */
  --sage: #b0bca5;      /* EN tag */
  --taupe: #aea193;     /* PT tag */
  --off: #efede9;       /* page ground */
  --muted: #46553f;     /* captions: darkened brand green, 4.5:1 on --off */
  --line: rgba(16, 45, 20, 0.14);
  --ok-bg: #e6ede1; --warn-bg: #fff4e0; --warn: #6b4a0e; --err-bg: #f6e3e1; --err: #8a1c1c;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--deep); background: var(--off); }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
header.site { background: var(--off); border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
header.site .logo img { height: 32px; width: auto; display: block; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
header.site nav a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 10px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
header.site nav a[aria-current="page"] { background: var(--deep); color: var(--off); }
header.site nav form { display: inline; margin: 0; }
.lang-switch { display: inline-flex; gap: 2px; margin-left: 4px; }
.lang-switch button { min-height: 36px; padding: 6px 10px; font-size: .8rem; letter-spacing: .06em; }
.lang-switch button[aria-pressed="true"] { background: var(--deep); color: var(--off); }

main { max-width: 720px; margin: 0 auto; padding: 20px 18px 40px; }
h1, h2 { font-family: "Alethia Next", Georgia, serif; font-weight: 300; line-height: 1.15; }
h1 { font-size: 2rem; margin: 6px 0 18px; }
h2 { font-size: 1.4rem; margin: 22px 0 10px; }
.muted { color: var(--muted); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .when { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.35rem; }
.card .meta { color: var(--muted); font-size: .92rem; }

/* Tags: EN sage, PT taupe (as on the canvas) */
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--sage); color: var(--deep); margin-left: 6px; vertical-align: middle; }
.tag.pt { background: var(--taupe); }
.tag.full { background: rgba(16, 45, 20, .08); color: var(--muted); }

/* Buttons: pill, 48px touch target */
button, .btn { font: inherit; font-weight: 600; font-size: .95rem; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--deep); background: var(--deep); color: var(--off); cursor: pointer; text-align: center; }
button:hover, .btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
button.secondary, .btn.secondary { background: transparent; color: var(--deep); }
button.secondary:hover, .btn.secondary:hover { background: #fff; color: var(--deep); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button:disabled { opacity: .45; cursor: default; background: rgba(16,45,20,.08); color: var(--muted); border-color: transparent; }
header.site button { min-height: 40px; padding: 8px 14px; font-size: .88rem; }

/* Messages */
.msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; }
.msg.success, .msg.info { background: var(--ok-bg); color: var(--deep); }
.msg.warning { background: var(--warn-bg); color: var(--warn); }
.msg.error { background: var(--err-bg); color: var(--err); }

/* Forms */
form.stack label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .92rem; }
form.stack input, form.stack select { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; border: 1px solid rgba(16,45,20,.25); border-radius: 12px; background: #fff; color: var(--deep); }
.errorlist { color: var(--err); margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }

/* Class list */
.wallet { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--green); color: #fff; }
.wallet strong { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--deep); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip.on { background: var(--deep); border-color: var(--deep); color: var(--off); }
.clear { font-size: .9rem; margin-left: 4px; }

/* Login hero */
.hero { text-align: center; padding: 10px 0 6px; }
.hero img { width: 220px; max-width: 70%; height: auto; }
.hero p { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.35rem; margin: 14px 0 22px; }
.hero em { font-style: italic; }

/* Footer */
footer.site { margin-top: 40px; padding: 26px 18px 34px; background-color: var(--deep); background-image: url("../brand/pattern-offwhite.d16954038ab5.png"); background-size: 180px 180px; background-blend-mode: soft-light; color: var(--off); text-align: center; font-size: .9rem; }
footer.site a { color: var(--off); }
footer.site img { height: 28px; width: auto; }

/* Staff register */
.register-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.register-row form { display: flex; gap: 6px; flex-wrap: wrap; }
.register-row button { min-height: 40px; padding: 8px 14px; font-size: .85rem; }
.register-row button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

@media (min-width: 720px) {
  header.site { padding: 14px 28px; }
  h1 { font-size: 2.4rem; }
}

/* v023.0.1: the Privacy Policy and Cookie Policy pages. Tables scroll inside
   their own box on a phone rather than widening the page. */
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 18px 0 6px; }
.legal .table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.legal .note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; }
footer.site .legal-links a { margin: 0 4px; }

/* v025: month view (/classes/ and /studio/). Cells at least 44 x 48 px; one breakpoint (above). */
.month { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.month-head { display: flex; align-items: center; justify-content: space-between; }
.month-name { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.25rem; }
.arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--deep); }
span.arrow[aria-disabled="true"] { opacity: .3; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays { font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; }
.days { list-style: none; margin: 0; padding: 0; }
.day { min-height: 48px; border-radius: 12px; display: flex; }
.day > a, .day > span { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--deep); border-radius: 12px; }
.day .n { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.05rem; line-height: 1.1; }
.day .mark { width: 6px; height: 6px; border-radius: 50%; }
.day .count { font-size: .62rem; font-weight: 600; color: var(--muted); line-height: 1; }
.day--out, .day--past { opacity: .4; }
.day--has .mark { background: var(--green); }
.day--later { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f3f1ec 6px, #f3f1ec 8px); }
.day--later .mark { border: 1.5px solid var(--green); }
.day--closed .mark { border: 1.5px solid var(--err); }
.day a[aria-current="date"] { background: var(--deep); color: var(--off); }
.day a[aria-current="date"] .n, .day a[aria-current="date"] .count { color: var(--off); }
.day a[aria-current="date"] .mark { border-color: var(--off); }
.day--has a[aria-current="date"] .mark { background: var(--off); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .75rem; color: var(--muted); margin: 2px 4px 0; }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: -4px; }
.key--has { background: var(--green); }
.key--later { border: 1.5px solid var(--green); }
.key--closed { border: 1.5px solid var(--err); }
.day-list h2 { font-family: "Alethia Next", Georgia, serif; font-weight: 300; font-size: 1.4rem; margin: 6px 0 10px; }
.card .dur { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; font-size: .82rem; font-weight: 500; color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #f3f1ec; color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.closed, .info { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.closed { background: var(--warn-bg); color: var(--warn); }
.info { background: var(--ok-bg); }
.card .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* v025 C: fixed-place plans (My plan, the picker, the provisional pop-up). */
.tag--provisional { background: #FFF4E0; color: #6B4A0E; border: 1px solid #E2C48A; }
.dialog { background: #fff; border: 2px solid #102D14; border-radius: 16px; padding: 16px; margin: 0 0 16px; }
.plan-times { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-times legend { font-size: .8rem; color: #46553F; padding: 0 0 4px; }
.plan-time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border: 1px solid rgba(16,45,20,.14); border-radius: 12px; background: #fff; text-align: center; }
.plan-time small { font-size: .7rem; color: #46553F; }
.plan-time--none { background: #E3E0D8; color: #7A7F74; }
.plan-card .when { font-size: 1.2rem; }

/* v025.2 (D5-D9): "Studio closed" strip on /classes/, where the language filter was. */
.closures { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; }
.closures h2 { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: .9rem; line-height: 1.4; margin: 0 0 8px; }
.closures ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.closure { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #e2c48a; background: #fff; color: var(--warn); font-size: .9rem; font-weight: 500; text-decoration: none; }
a.closure:hover { color: var(--deep); border-color: var(--warn); }
