/* ============================================================
   Tetra Onam — light, warm, kasavu-and-marigold
   Palette taken from the festival itself: the off-white of a
   kasavu mundu, its gold border, and the flowers of a pookkalam.
   ============================================================ */

:root {
  /* ground & ink */
  --cream:      #FFFBF3;
  --cream-deep: #FDF3E3;
  --surface:    #FFFFFF;
  --ink:        #2B2118;
  --ink-soft:   #6B5B48;
  --ink-faint:  #9C8C79;
  --line:       #EFE2CC;

  /* the flowers */
  --gold:       #C9A227;
  --gold-lite:  #F3E3B3;
  --marigold:   #F59E0B;
  --orange:     #EA6A17;
  --red:        #C62828;
  --pink:       #D6336C;
  --green:      #2E7D32;
  --green-lite: #E7F3E8;
  --blue:       #1565C0;
  --purple:     #7B3FA0;

  --radius:     22px;
  --radius-sm:  14px;
  --shadow:     0 2px 4px rgba(90, 62, 20, .04), 0 12px 32px -12px rgba(90, 62, 20, .18);
  --shadow-lg:  0 4px 8px rgba(90, 62, 20, .05), 0 28px 60px -20px rgba(90, 62, 20, .28);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mal:     'Noto Sans Malayalam', var(--font-body);

  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(245, 158, 11, .10), transparent 42%),
    radial-gradient(circle at 88% 4%,  rgba(214, 51, 108, .08), transparent 38%),
    radial-gradient(circle at 50% 96%, rgba(46, 125, 50, .08),  transparent 46%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--orange); }

/* an emoji used as a label needs breathing room from its text */
.ico { margin-right: .4em; font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
  color: var(--ink);
}

.mal { font-family: var(--font-mal); font-weight: 500; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ------------------------------------------------------- kasavu accents -- */

/* The gold stripe of a kasavu mundu, used as a divider / top rule. */
.kasavu {
  height: 6px;
  background: linear-gradient(90deg,
    transparent, var(--gold-lite) 8%, var(--gold) 24%, #F7DE9A 40%,
    var(--gold) 56%, var(--gold-lite) 76%, transparent);
  background-size: 200% 100%;
  animation: kasavu-shimmer 9s linear infinite;
}
@keyframes kasavu-shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- petals --- */

#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -8vh;
  will-change: transform;
  animation: petal-fall linear infinite;
}
.petal span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 60% 0 60% 0;
  animation: petal-spin ease-in-out infinite alternate;
}
@keyframes petal-fall {
  from { transform: translate3d(0, -10vh, 0); }
  to   { transform: translate3d(var(--drift, 40px), 108vh, 0); }
}
@keyframes petal-spin {
  from { transform: rotate(0deg)   scaleX(1); }
  to   { transform: rotate(320deg) scaleX(.35); }
}

/* --------------------------------------------------------------- nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 243, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  animation: slow-spin 26s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav-links a, .nav-links button {
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links button:hover { background: var(--cream-deep); color: var(--ink); }
.nav-links a.on { background: var(--gold-lite); color: #6E5405; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero .greeting {
  font-family: var(--font-mal);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--red);
  margin: 1.4rem 0 .2rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 700;
  margin: 0;
  background: linear-gradient(100deg, var(--red) 0%, var(--orange) 38%, var(--marigold) 62%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.hero .lede {
  max-width: 40rem;
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-soft);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-meta b { color: var(--ink); font-weight: 650; }

.pookkalam-wrap {
  position: relative;
  width: clamp(180px, 34vw, 250px);
  margin: 2rem auto .5rem;
}
.pookkalam { display: block; width: 100%; animation: slow-spin 60s linear infinite; }
.pookkalam-wrap::after {
  content: '';
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 68%);
  z-index: -1;
  animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.12); opacity: .6; } }

/* ----------------------------------------------------------- countdown -- */

.countdown {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 1.8rem 0 2rem;
  flex-wrap: wrap;
}
.cd-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  min-width: 78px;
  box-shadow: var(--shadow);
}
.cd-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.cd-cell span {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.cd-note { text-align: center; color: var(--ink-soft); font-weight: 600; margin: 1.8rem 0; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .16s ease, box-shadow .2s ease, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--marigold));
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(234, 106, 23, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(234, 106, 23, .8); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ------------------------------------------------------------- sections -- */

.section { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-top: .35rem; }
.section-head p { color: var(--ink-soft); max-width: 38rem; margin: .5rem auto 0; }

/* --------------------------------------------------------- program grid -- */

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent, var(--marigold));
}
.card::after { /* soft colour wash that blooms on hover */
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--accent, var(--marigold));
  opacity: .07;
  transition: transform .45s ease, opacity .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scale(1.5); opacity: .13; }

.card .emoji {
  font-size: 2rem;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  margin-bottom: .9rem;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.card:hover .emoji { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 1.4rem; margin-bottom: .1rem; }
.card .mal-name { font-family: var(--font-mal); color: var(--accent); font-size: 1rem; font-weight: 600; }
.card .time {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin: .7rem 0 .6rem;
}
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1rem; }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.card li {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.card .card-cta { margin-top: 1.1rem; }

/* ---------------------------------------------------------- sadhya band -- */

.band {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #FFF6E6 0%, #FFEFF0 42%, #E9F5E9 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 3.2rem) 0;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.band p { color: var(--ink-soft); max-width: 34rem; margin: .6rem auto 1.5rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* The sadhya illustration anchors the band. It sits below the call to action
   and bleeds into the section's bottom padding, so the leaf reads as the
   ground the whole block is served on. */
.band-leaf {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 2.2rem auto -3.5rem;
  filter: drop-shadow(0 18px 30px rgba(31, 95, 37, .22));
  animation: leaf-float 8s ease-in-out infinite;
}
@keyframes leaf-float {
  50% { transform: translateY(-10px) rotate(-.5deg); }
}

/* -------------------------------------------------------------- stats ---- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.stat.green b { color: var(--green); }
.stat.red   b { color: var(--red); }
.stat.blue  b { color: var(--blue); }

/* --------------------------------------------------------------- form ---- */

.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  position: relative;
  z-index: 2;
}
.form-card {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-head {
  text-align: center;
  padding: 2.2rem 1.6rem 1.6rem;
  background: linear-gradient(160deg, #FFF6E6, #FFEEF1 60%, #FFFFFF);
  border-bottom: 1px solid var(--line);
}
.form-head .mark { width: 74px; margin: 0 auto .6rem; animation: slow-spin 40s linear infinite; }
.form-head h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.2rem);
  margin: 0;
  background: linear-gradient(100deg, var(--red), var(--orange) 55%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.form-head h1 .gloss { font-size: .62em; font-weight: 400; }
.form-head .sub { color: var(--ink-soft); font-size: .95rem; margin: .4rem 0 0; }
.form-head .when {
  display: inline-block;
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #6E5405;
  background: var(--gold-lite);
  border-radius: 999px;
  padding: .35rem .9rem;
}
.form-body { padding: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field .hint { font-weight: 500; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239C8C79' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--marigold);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}
.field.bad input, .field.bad select { border-color: var(--red); background: #FFF6F6; }
.field .err { display: block; color: var(--red); font-size: .8rem; font-weight: 600; margin-top: .35rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* the phone field gets a fixed +91 prefix */
.tel { display: flex; align-items: stretch; }
.tel .cc {
  display: grid;
  place-items: center;
  padding: 0 .85rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.tel input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* the people counter */
.counter { display: flex; align-items: center; gap: .6rem; }
.counter input { max-width: 110px; }
.counter button {
  flex: none;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
  background: var(--cream-deep);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .12s, background .18s;
}
.counter button:hover { background: var(--gold-lite); }
.counter button:active { transform: scale(.92); }
.counter input { text-align: center; font-weight: 700; font-size: 1.1rem; }

.notice {
  display: flex;
  gap: .7rem;
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  font-size: .9rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.notice-warn { background: #FFF7E6; border: 1px solid #F3D48A; color: #7A5A05; }
.notice-info { background: var(--green-lite); border: 1px solid #BEDCC0; color: #23572A; }
.notice-fee  { background: #FFFBEC; border: 1px solid var(--gold-lite); color: #6E5405; }

.form-foot {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-faint);
  padding: 0 1.6rem 1.6rem;
}

/* --------------------------------------------------------- thank you ----- */

.thanks { text-align: center; padding: 2.4rem 1.6rem 2.2rem; }
.thanks .tick {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.2rem;
  background: var(--green-lite);
  animation: pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.thanks h2 { font-size: 1.9rem; }
.thanks .mal { color: var(--red); font-size: 1.25rem; margin-bottom: .6rem; }
.recap {
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 .2rem;
}
.recap div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; }
.recap div + div { border-top: 1px dashed var(--line); }
.recap span { color: var(--ink-faint); }
.recap b { font-weight: 650; }

/* --------------------------------------------------------------- table --- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 1.3rem; }
.panel-head .spacer { margin-left: auto; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .8rem 1rem; text-align: left; white-space: nowrap; }
thead th {
  background: var(--cream-deep);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  position: sticky; top: 0;
}
tbody tr { border-top: 1px solid var(--line); transition: background .15s; }
tbody tr:hover { background: #FFFCF5; }
td.num { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
td.name { font-weight: 600; white-space: normal; }
.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-soft);
}
.tag.Pride { background: #F3E8FA; color: var(--purple); }
.tag.A { background: #FFF0DF; color: var(--orange); }
.tag.B { background: #E4EFFC; color: var(--blue); }
.tag.C { background: var(--green-lite); color: var(--green); }
.pax { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.wa { color: var(--ink-soft); text-decoration: none; font-variant-numeric: tabular-nums; }
.wa:hover { color: var(--green); text-decoration: underline; }
.del {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 1rem; padding: .2rem .4rem; border-radius: 8px;
}
.del:hover { color: var(--red); background: #FFF0F0; }

/* the two big links on the organisers' dashboard */
.admin-card { display: block; text-decoration: none; color: inherit; }
.admin-card h3 { color: var(--ink); }
.card-link { font-weight: 650; color: var(--accent); font-size: .92rem; }

/* ------------------------------------------------- manage programmes ---- */

.prog-edit { margin-bottom: 1.2rem; }
.prog-edit .panel-head { gap: .65rem; }
.prog-edit .panel-head h2 { font-size: 1.15rem; }
.prog-body { padding: 1.3rem 1.4rem 1.5rem; }
.prog-body .field:last-of-type { margin-bottom: 1.2rem; }

.prog-badge {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  font-size: 1.2rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, white);
}

.icon-btn {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  width: 34px; height: 34px;
  flex: none;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--gold-lite); color: #6E5405; border-color: var(--gold); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { background: #FFF0F0; color: var(--red); border-color: #F3C4C4; }

.prog-edit.add { border-style: dashed; border-width: 2px; background: #FFFDF8; }

.notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: rgba(0, 0, 0, .06);
  padding: .1em .4em;
  border-radius: 5px;
}

.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-soft); }
.empty .big { font-size: 3rem; display: block; margin-bottom: .6rem; animation: bob 3s ease-in-out infinite; }

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.search {
  flex: 1 1 220px;
  font: inherit;
  padding: .7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.search:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }

/* ------------------------------------------------------------- footer ---- */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 0 3rem;
  color: var(--ink-faint);
  font-size: .88rem;
}
.footer .mal { color: var(--red); font-size: 1.1rem; display: block; margin-bottom: .4rem; }

/* ----------------------------------------------------------- reveal ------ */

/* Visible by default — if the script never runs, nothing is ever hidden.
   The inline head script adds .js-anim, which opts into the animation. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(22px); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .nav-links a, .nav-links button { padding: .4rem .6rem; font-size: .86rem; }
  .brand small { display: none; }
  th, td { padding: .7rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #petals { display: none; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, #petals, .toolbar, .del, .footer { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}
