/* /gift/diwali/ — the Diwali gift page (Design, 2026-11-08). A THEME on top of ../gift.css, not a second page
   design: warm diya light on the felt, a rangoli band along the table's edges, the light cards in the gift
   card's fan. The band and the glow are backgrounds and absolute strips, so nothing here changes the heights
   gift.css measured for the phone fold (the whole Give button on the first screen at 390×664). One new colour,
   terracotta, for the clay of a diya. Prefix dw-; the theme hangs off <body class="theme-diwali"> and the card
   off .gcard-diwali (gift.js adds it when the page says data-theme="diwali"). */

.theme-diwali { --diya: #C9683A; --glow: rgba(246, 183, 60, .5); }

/* ---------- the glow: diya light falling on the felt, from the top of each felt band ---------- */
.theme-diwali .felt {
  background-image: radial-gradient(ellipse 110% 70% at 50% -10%, var(--glow), rgba(246, 183, 60, 0) 72%), url("../../about/img/felt.webp");
  background-size: 100% 100%, 800px auto;
  background-repeat: no-repeat, repeat;
}
.theme-diwali .top { position: relative; } /* the top bar carries the first band; it hangs over the table's edge */
.theme-diwali .g-table, .theme-diwali .g-how, .theme-diwali .g-hero { position: relative; }

/* ---------- the rangoli band: one SVG tile repeated; it sits ON edges, taking no room ---------- */
.dw-band { position: absolute; left: 0; right: 0; height: 22px; background: url("rangoli.svg") center / 132px 22px repeat-x; pointer-events: none; }
.top .dw-band { bottom: -11px; z-index: 2; }
.g-table .dw-band, .g-how .dw-band { bottom: 0; }
@media (max-width: 699px) {
  .dw-band { height: 16px; background-size: 96px 16px; }
  .top .dw-band { bottom: -8px; }
}

/* ---------- every tap 56 px tall (the house rule; the shared bar and footer are built to the site's 44). The bar
   keeps its 64 px (4 + 56 + 4), so nothing above the slip moves and the phone fold is unchanged. ---------- */
.theme-diwali .top-row { padding-top: 4px; padding-bottom: 4px; }
.theme-diwali .top-mark, .theme-diwali .top-nav a, .theme-diwali .foot nav a { min-height: 56px; }

/* ---------- the kicker: a small diya before the words ---------- */
.theme-diwali .g-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--marigold); }
.dw-diya { width: 22px; height: 19px; flex-shrink: 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.theme-diwali .g-table h1 { text-wrap: balance; }


/* ---------- the light cards ("Light, explained."): four, two by two on a phone ---------- */
.theme-diwali .g-inside { position: relative; }
.dw-sub { margin: 10px auto 0; font-size: 17px; color: var(--ink-soft); max-width: 44ch; }
.theme-diwali .g-cards.dw-four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
.theme-diwali .g-cards.dw-four li { padding: 0; }
.theme-diwali .g-cards.dw-four a { display: block; padding: 8px 8px 12px; border-radius: 18px; color: inherit; text-decoration: none; }
.theme-diwali .g-cards.dw-four a:hover span, .theme-diwali .g-cards.dw-four a:focus-visible span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.theme-diwali .g-cards.dw-four a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; }
.theme-diwali .g-cards.dw-four span { font-size: 15px; }
@media (max-width: 479px) { .theme-diwali .g-cards.dw-four span { font-size: 14px; } .theme-diwali .g-cards.dw-four a { padding: 6px 6px 10px; } }
@media (min-width: 700px) {
  .theme-diwali .g-cards.dw-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .theme-diwali .g-cards.dw-four a { padding: 10px 10px 14px; }
  .theme-diwali .g-cards.dw-four span { font-size: 17px; margin-top: 10px; }
}

/* ---------- the gift card, themed: warm light on its felt half, the ribbon in marigold ---------- */
.gcard.gcard-diwali .gcard-felt {
  background-image: radial-gradient(ellipse 120% 70% at 50% 100%, rgba(246, 183, 60, .5), rgba(246, 183, 60, 0) 70%), url("../../about/img/felt.webp");
  background-size: 100% 100%, 320em auto;
  background-repeat: no-repeat, repeat;
}
.gcard.gcard-diwali .gcard-ribbon span { color: var(--marigold); }
.gcard.gcard-diwali .gcard-ribbon span::before { content: ""; display: inline-block; width: 1.1em; height: .95em; margin-right: .5em; vertical-align: -.12em; background: url("diya.svg") center / contain no-repeat; }
.gcard.gcard-diwali .gcard-code-l { color: var(--diya); }

/* the printable page (/gift/card/?code=…&t=diwali) links this file too, from one folder up */
@media print {
  .gcard.gcard-diwali .gcard-felt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
