:root {
  color-scheme: light;
  --ink: #182f33;
  --muted: #51666a;
  --green: #123e46;
  --green2: #226264;
  --bg: #f6f8f6;
  --line: #dce4df;
  --gold: #efd298;
  --soft: #e6eeea;
  --white: #fff;
  --err: #942b2b;
  --r: 14px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg)
}

* {
  box-sizing: border-box
}

[hidden] {
  display: none !important
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

button,
input,
textarea,
select {
  font: inherit
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:disabled {
  cursor: wait;
  opacity: .65
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c38c33;
  outline-offset: 3px
}

a {
  color: var(--green2)
}

.top {
  background: white;
  border-bottom: 1px solid var(--line)
}

.top-in,
.foot {
  max-width: 1200px;
  margin: auto;
  padding: 15px clamp(16px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.035em;
  font-size: 1.19rem
}

.brandmark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.6rem
}

.top nav,
.tools,
.choices,
.pills,
.form-actions,
.list-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap
}

.top nav a,
.top nav button {
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--green);
  padding: 8px 12px
}

.top nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px
}

.entry,
.btn,
.primary,
.danger,
.navbtn,
.switch button,
.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 650;
  padding: 9px 14px;
  line-height: 1.35;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.entry:hover,
.btn:hover,
.navbtn:hover,
.chip:hover {
  background: var(--soft)
}

.primary {
  background: var(--green);
  color: white;
  border-color: var(--green)
}

.primary:hover {
  background: #20555c
}

.danger {
  color: var(--err);
  border-color: #e2bfbd
}

.wrap {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 52px) 44px;
  flex: 1
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4.5vw, 54px);
  border-radius: 21px;
  color: #fbfcf6;
  background-color: var(--green);
  background-image: linear-gradient(105deg, #123e46 30%, #123e46df 58%, #123e4620), repeating-linear-gradient(90deg, transparent 0 42px, #c6dfcb22 42px 43px), repeating-linear-gradient(0deg, transparent 0 42px, #c6dfcb22 42px 43px)
}

.hero-text {
  max-width: 700px
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
  color: var(--green2);
  margin: 0 0 11px
}

.hero .eyebrow {
  color: var(--gold)
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere
}

h1,
h2,
h3 {
  line-height: 1.13
}

h1 {
  margin: 0 0 12px;
  letter-spacing: -.045em;
  font-size: clamp(2.15rem, 5.1vw, 4.1rem)
}

.hero h1,
.section-head h1 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-weight: 500
}

.hero-text>p:last-child,
.section-head>p:last-child {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0
}

.hero-text>p:last-child {
  color: #e1eeea;
  max-width: 560px
}

.today-plaque {
  flex: 0 0 auto;
  min-width: 105px;
  background: #fbf8ec;
  border-radius: 10px;
  border-top: 7px solid var(--gold);
  color: var(--green);
  display: grid;
  text-align: center;
  padding: 9px 13px;
  line-height: 1.1;
  box-shadow: 0 6px 26px #10292e33
}

.today-plaque span {
  font-size: .82rem;
  font-weight: 650
}

.today-plaque strong {
  font: 3.15rem/1.1 Georgia, serif
}

.view-bar,
.toolbar,
.heading-row,
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap
}

.view-bar {
  margin: 22px 0 16px
}

.switch {
  padding: 4px;
  display: inline-flex;
  background: #e7ede9;
  border: 1px solid var(--line);
  border-radius: 11px
}

.switch button {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  padding: 8px 15px;
  font-size: .95rem
}

.switch button[aria-pressed=true] {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #1c343426
}

.region,
.muted,
.hint,
.meta {
  color: var(--muted)
}

.region,
.meta,
.hint {
  font-size: .9rem
}

.panel,
.form-panel,
.list-row,
.calendar,
.credential {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff
}

.panel,
.form-panel,
.credential {
  padding: clamp(16px, 3vw, 30px)
}

.calendar {
  overflow: hidden
}

.toolbar {
  padding: 19px 22px
}

.toolbar h2,
.heading-row h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -.035em
}

.navbtn {
  padding: 6px 12px;
  min-height: 37px
}

.weekday,
.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr))
}

.weekday {
  background: #f1f5f2;
  border-block: 1px solid var(--line)
}

.weekday span {
  padding: 10px 9px;
  color: var(--muted);
  font-size: .84rem;
  text-align: left;
  font-weight: 650
}

.cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px;
  min-height: 70px;
  min-width: 0
}

.cell:nth-child(7n) {
  border-right: 0
}

.cell.faded {
  background: #f4f7f4
}

.day-number {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  min-height: 29px;
  border-radius: 50%;
  font-size: .92rem;
  font-weight: 650
}

.day-number.today {
  background: var(--green);
  color: white
}

.event-pin {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid #28726a;
  background: #e3f0eb;
  color: #144c43;
  padding: 4px;
  margin-top: 3px;
  font-size: .8rem;
  line-height: 1.3;
  border-radius: 4px;
  overflow-wrap: anywhere
}

.event-pin.especial {
  border-color: #9b631b;
  color: #694715;
  background: #fbf1dc
}

.pin-time {
  font-weight: bold
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px
}

.legend span,
.badge {
  font-size: .82rem
}

.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #28726a;
  margin-right: 4px;
  border-radius: 50%
}

.legend .special {
  background: #aa711e
}

.below {
  margin: 12px 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45
}

.foot {
  width: min(100%, 1200px);
  border-top: 1px solid var(--line);
  padding-block: 18px;
  color: var(--muted);
  font-size: .88rem
}

.section-head {
  margin: 9px 0 24px
}

.section-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem)
}

.section-head>p:last-child {
  color: var(--muted)
}

.heading-row {
  margin: 18px 0 13px
}

.pills,
.choices {
  margin: 12px 0 17px
}

.chip {
  font-size: .9rem;
  padding: 7px 12px
}

.chip[aria-pressed=true] {
  color: #fff;
  background: var(--green);
  border-color: var(--green)
}

.list {
  display: grid;
  gap: 9px
}

.list-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 17px
}

.stamp {
  display: grid;
  place-items: center;
  align-content: center;
  background: #edf3ee;
  color: var(--green);
  border-radius: 9px;
  min-height: 58px;
  line-height: 1.1
}

.stamp strong {
  font: 1.6rem/1 Georgia, serif
}

.stamp span {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .04em;
  font-weight: 650
}

.list-row h3 {
  font-size: 1.1rem;
  margin: 4px 0 6px;
  letter-spacing: -.02em
}

.list-row p {
  margin: 3px 0;
  line-height: 1.45
}

.preview-thumb {
  width: 65px;
  height: 57px;
  object-fit: cover;
  border-radius: 7px
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e7f0ec;
  color: #24554d;
  font-weight: 650;
  margin-right: 5px
}

.badge.especial,
.badge.pendiente {
  background: #fbefd9;
  color: #704a19
}

.badge.recurrente {
  background: #eaeaf5;
  color: #514b78
}

.badge.retirada {
  background: #f4e5e3;
  color: #883f39
}

.empty {
  padding: 26px 22px;
  background: #fff;
  border: 1px dashed #b5c5bc;
  border-radius: 11px
}

.empty h3 {
  margin: 0 0 5px;
  font-size: 1.12rem
}

.empty p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45
}

.form-panel {
  max-width: 880px
}

.login {
  max-width: 510px
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px
}

.full {
  grid-column: 1/-1
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 650;
  font-size: .92rem
}

input:not([type=checkbox]),
select,
textarea {
  width: 100%;
  border: 1px solid #adbfba;
  border-radius: 7px;
  padding: 9px 11px;
  min-height: 42px;
  background: white;
  color: var(--ink);
  font-weight: 400;
  max-width: 100%
}

textarea {
  min-height: 90px;
  resize: vertical
}

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500
}

.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.form-actions {
  margin: 20px 0 2px
}

.hint {
  font-weight: 400;
  line-height: 1.45;
  margin: 0
}

.form-panel h2 {
  font-size: 1.4rem;
  margin: 0 0 18px
}

.form-panel h3 {
  margin: 9px 0 1px
}

.message {
  padding: 12px 16px;
  border-left: 4px solid #41796c;
  background: #e4f1ea;
  margin: 12px 0;
  color: #20473f
}

.message.error {
  border-color: #b6504a;
  background: #faeeec;
  color: #7e2929
}

.credential {
  background: #f8f5e8;
  margin: 14px 0
}

.credential code {
  font-size: 1rem;
  word-break: break-all;
  user-select: all
}

.panel-stack {
  display: grid;
  gap: 13px
}

.work-nav {
  margin-bottom: 15px
}

.list-row .btn {
  white-space: nowrap
}

.hint a {
  font-weight: 650
}

dialog {
  width: min(600px, calc(100% - 30px));
  border-radius: 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
  max-height: 90vh;
  overflow: auto
}

dialog::backdrop {
  background: #10272a96
}

.modal-inner {
  padding: 22px
}

.modal-inner .card-title {
  align-items: start;
  flex-wrap: nowrap
}

.modal-inner h2 {
  margin: 5px 0 13px;
  font-size: 1.65rem;
  letter-spacing: -.03em
}

.modal-inner h3 {
  font-size: 1.03rem;
  margin: 16px 0 7px
}

.modal-inner p {
  white-space: pre-line;
  line-height: 1.55;
  margin: 7px 0
}

.modal-media {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
  background: #f0f2ed;
  margin: 14px 0
}

.compact {
  font-size: .9rem;
  padding: 7px 11px
}

.split {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.error-text {
  color: var(--err)
}

.help-detail {
  margin-top: 16px
}

.help-detail summary {
  cursor: pointer;
  color: var(--green2);
  font-weight: 600
}

.day-open {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit
}

.mobile-events {
  display: none
}

.list-actions {
  margin-top: 12px
}

.download {
  font-size: .95rem;
  display: inline-block;
  padding: 4px
}

.detail-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  margin: 12px 0
}

.detail-facts dt {
  font-weight: 650
}

.detail-facts dd {
  margin: 0
}

.form-note {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45
}

.btn-link {
  border: 0;
  background: none;
  color: var(--green2);
  text-decoration: underline;
  padding: 3px;
  font-weight: 650
}

@media(max-width:680px) {
  .top-in {
    padding-block: 11px
  }

  .top nav {
    gap: 3px
  }

  .top nav a,
  .top nav button {
    font-size: .82rem;
    padding: 7px
  }

  .brand {
    font-size: 1rem;
    gap: 6px
  }

  .brandmark {
    width: 28px;
    height: 28px;
    font-size: 1.2rem
  }

  .wrap {
    padding-top: 16px
  }

  .hero {
    padding: 23px 18px;
    gap: 10px
  }

  .today-plaque {
    min-width: 65px;
    padding: 7px
  }

  .today-plaque strong {
    font-size: 2rem
  }

  .hero-text>p:last-child {
    font-size: .91rem
  }

  .hero h1 {
    font-size: 2.1rem
  }

  .hero .eyebrow {
    font-size: .67rem
  }

  .tools {
    gap: 5px
  }

  .toolbar {
    padding: 12px
  }

  .toolbar h2 {
    font-size: 1.16rem
  }

  .navbtn {
    font-size: .87rem;
    padding: 6px 9px
  }

  .weekday span {
    text-align: center;
    padding: 6px 2px
  }

  .cell {
    text-align: center;
    min-height: 46px;
    padding: 3px 0
  }

  .cell .event-pin {
    display: none
  }

  .mobile-events {
    display: block;
    font-size: .65rem;
    color: var(--green);
    font-weight: 650;
    padding: 0
  }

  .day-open.has {
    background: #dbece5;
    border-radius: 5px;
    min-width: 28px;
    min-height: 39px
  }

  .legend {
    font-size: .8rem;
    padding: 8px
  }

  .region {
    font-size: .8rem
  }

  .view-bar {
    gap: 6px
  }

  .switch button {
    font-size: .86rem;
    padding: 7px 10px
  }

  .list-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    padding: 11px
  }

  .list-row>.row-action {
    grid-column: 2;
    justify-self: start
  }

  .stamp {
    min-height: 50px
  }

  .preview-thumb {
    width: 46px;
    height: 46px
  }

  .fields {
    grid-template-columns: 1fr
  }

  .full {
    grid-column: auto
  }

  .choices,
  .pills {
    gap: 5px
  }

  .chip {
    font-size: .82rem;
    padding: 6px 9px
  }

  .foot {
    font-size: .8rem
  }

  .eyebrow {
    font-size: .74rem
  }

  .today-plaque span {
    font-size: .7rem
  }
}

@media(max-width:365px) {
  .top nav a[aria-current] {
    display: none
  }

  .today-plaque {
    display: none
  }

  .region {
    display: none
  }
}
