/* Written blog posts (data/blog-posts/*.html): hero picture, article typography, share buttons,
   get-the-app and newsletter panels. Uses the site's theme tokens (style.css :root), so it follows
   the brand and the day/night setting. */

.post-hero { margin: 14px 0 18px; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(36, 31, 26, .18); }

.blog-post-container h1 { text-wrap: balance; line-height: 1.15; }

/* share */
.post-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font: 600 .9rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.share-wa { background: #1f8f4e; color: #fff; }
.share-wa:hover { background: #17733e; }
.share-fb { background: #1b5fc9; color: #fff; }
.share-fb:hover { background: #154ba1; }
.share-copy { background: transparent; color: var(--ink); border-color: var(--line); }
.share-copy:hover { border-color: var(--saffron); }
.share-btn:focus-visible { outline: 3px solid var(--saffron-light); outline-offset: 2px; }

/* article body */
.blog-post-body h2 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; margin: 2em 0 .55em; color: var(--ink); text-wrap: balance; }
.blog-post-body h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; color: var(--maroon-dark); }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.blog-post-body li { margin-bottom: .7em; }
.blog-post-body .lead { font-size: 1.14rem; line-height: 1.7; color: var(--ink); }
.blog-post-body blockquote {
  margin: 1.8em auto; padding: 16px 8px; max-width: 600px; text-align: center; font-style: italic;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--maroon-dark);
  font-family: var(--font-display); font-size: 1.32rem; line-height: 1.5; text-wrap: balance;
}

.post-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.4em 0 .6em; }
.post-dates > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pd-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron); }
.pd-day { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.post-note { font-size: .92rem; color: var(--ink-soft); }

.post-figure { margin: 1.8em auto; max-width: 560px; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.post-figure figcaption { font-size: .86rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; }
.post-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; line-height: 1.5; background: var(--surface); }
.post-table th, .post-table td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--cream-dark); font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.post-table thead th small { font-family: var(--font-body); font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
.post-table thead th:nth-child(2) { border-top: 4px solid #4f9a45; }
.post-table thead th:nth-child(3) { border-top: 4px solid #6e4a86; }
.post-table tbody th { width: 22%; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.post-table tr:last-child th, .post-table tr:last-child td { border-bottom: none; }

.post-caution { padding: 12px 16px; border-radius: 10px; background: var(--cream-dark); border: 1px solid var(--line); font-size: .93rem; }
.post-disclaimer { margin-top: 2em; font-size: .86rem; color: var(--ink-soft); font-style: italic; }

/* panels under the article */
.post-panel { margin-top: 30px; padding: 24px 24px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.post-panel h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 2px 0 8px; line-height: 1.2; }
.post-panel p { margin: 0 0 12px; line-height: 1.6; }
.panel-kicker { font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron); margin: 0 !important; }

.post-apps { background: linear-gradient(135deg, var(--surface), var(--cream-dark)); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 6px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px 10px 14px; border-radius: 12px;
  text-decoration: none; border: 1.5px solid transparent; min-height: 52px; box-sizing: border-box;
}
.store-btn img { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.store-btn span { display: flex; flex-direction: column; font: 700 1.02rem/1.15 var(--font-body); }
.store-btn small { font-size: .72rem; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.store-play { background: #1c1a17; color: #fff; }
.store-play:hover { background: #000; }
.store-ios { background: transparent; color: var(--ink); border-color: var(--line); }
.store-ios span { font-size: .9rem; }
.store-ios:hover { border-color: var(--saffron); }
.store-btn:focus-visible { outline: 3px solid var(--saffron-light); outline-offset: 3px; }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: 1rem var(--font-body); background: var(--cream); color: var(--ink);
}
.nl-row input[type="email"]:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(184, 118, 58, .2); }
.nl-row button {
  flex: 0 0 auto; padding: 12px 22px; border: none; border-radius: 8px; background: var(--maroon); color: #fff;
  font: 700 1rem var(--font-body); cursor: pointer;
}
.nl-row button:hover { background: var(--maroon-dark); }
.nl-row button:focus-visible { outline: 3px solid var(--saffron-light); outline-offset: 2px; }
.nl-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.nl-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--maroon); flex: 0 0 auto; }
.lead-done { padding: 12px 14px; border-radius: 10px; background: rgba(47, 107, 70, .12); color: var(--ink); }
.lead-error { color: #b3261e; font-weight: 600; }
.nl-family { font-size: .9rem; color: var(--ink-soft); margin: 0 !important; }

@media (max-width: 640px) {
  .post-dates { grid-template-columns: 1fr; }
  .post-panel { padding: 20px 16px 18px; }
  .blog-post-body h2 { font-size: 1.5rem; }
}

/* Phones: the comparison table becomes one card per attribute, Rama above Krishna, so nothing hides
   behind a sideways scroll. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: none; }
  .post-table { min-width: 0; background: transparent; }
  .post-table thead { display: none; }
  .post-table, .post-table tbody, .post-table tr, .post-table th, .post-table td { display: block; width: auto; }
  .post-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
  .post-table tbody th { width: auto; background: var(--cream-dark); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 9px 13px; }
  .post-table td { padding: 10px 13px; }
  .post-table td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
  .post-table td[data-label="Rama Tulsi"]::before { color: #3d8a3a; }
  .post-table td[data-label="Krishna Tulsi"]::before { color: #6e4a86; }
  .post-table tr:last-child th, .post-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .post-table td:last-child, .post-table tr:last-child td:last-child { border-bottom: none; }
}
.store-btn { max-width: 100%; }
.store-ios img { background: #1c1a17; border-radius: 50%; padding: 4px; box-sizing: content-box; width: 22px; height: 22px; }
.store-ios span { white-space: normal; }

/* ---------------------------------------------------------------------------------------------
   Festival letter posts (kartika-purnima): the look of the members' email, on the site's tokens.
   A gold "flame" accent on a night-blue ground for the hero and the store buttons; the sections
   below the story mirror the email (app pictures, Facebook/WhatsApp cards, Business, signature). */
:root { --flame: #e6a13c; --night: #0b0f2e; }

.post-hero img[src*="kartika"] { background: var(--night); box-shadow: 0 14px 40px rgba(11, 15, 46, .35); }

.fest-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.fest-section h2 { margin-top: .2em !important; }
.fest-kicker { margin: 0 0 4px; font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.fest-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 16px; }
.fest-benefits img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
@media (min-width: 900px) { .fest-benefits { grid-template-columns: repeat(4, 1fr); } }

.blog-post-body ul.fest-points { list-style: none; padding: 0; margin: 0 0 18px; }
.fest-points li { position: relative; padding-left: 1.5em; color: var(--ink-soft); }
.fest-points li::before { content: "\25C6"; position: absolute; left: 0; top: .05em; color: var(--flame); font-size: .9em; }
.fest-points b { color: var(--ink); }

.fest-stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 8px 0 6px; }
.fest-store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 14px; border-radius: 14px; min-height: 54px;
  background: #000; border: 2px solid var(--flame); color: #fff !important; text-decoration: none !important; box-sizing: border-box; max-width: 100%;
}
.fest-store img { width: 28px; height: 28px; flex: 0 0 auto; }
.fest-store span { display: flex; flex-direction: column; font: 700 1.12rem/1.15 var(--font-body); }
.fest-store small { font-size: .64rem; font-weight: 500; letter-spacing: .05em; color: #d9d9d9; }
.fest-store:hover { background: var(--night); }
.fest-store:focus-visible, .fest-pill:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

.fest-iphone { margin: 18px 0 0; padding: 16px 16px 18px; border-radius: 14px; background: var(--cream-dark); text-align: center; }
.fest-iphone p { margin: 0 0 12px; font-size: .95rem; color: var(--ink-soft); }
.blog-post-body .fest-iphone-title { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.fest-store--quiet { border-color: #555; }

.fest-family { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 8px; }
.fest-card { padding: 18px 14px 20px; border-radius: 14px; text-align: center; border: 1px solid; }
.fest-card p { margin: 0 0 12px; font-size: .92rem; line-height: 1.45; }
.blog-post-body .fest-card-title { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.fest-card--fb { background: color-mix(in srgb, #1877f2 9%, var(--surface)); border-color: color-mix(in srgb, #1877f2 28%, var(--surface)); }
.fest-card--wa { background: color-mix(in srgb, #128c4b 9%, var(--surface)); border-color: color-mix(in srgb, #128c4b 28%, var(--surface)); }
.fest-card--fb .fest-card-title { color: color-mix(in srgb, #1877f2 70%, var(--ink)); }
.fest-card--wa .fest-card-title { color: color-mix(in srgb, #128c4b 70%, var(--ink)); }
.fest-pill {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font: 700 .95rem/1.2 var(--font-body);
  color: #fff !important; text-decoration: none !important;
}
.fest-card--fb .fest-pill { background: #1877f2; }
.fest-card--wa .fest-pill { background: #128c4b; }
.fest-pill--band { background: var(--maroon); }
.fest-pill:hover { filter: brightness(.92); }
.blog-post-body .fest-fine { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); text-align: center; }

.fest-banner { display: block; margin: 0 0 18px; }
.fest-banner img { display: block; width: 100%; height: auto; border-radius: 14px; }

.fest-sign {
  display: flex; gap: 16px; align-items: flex-start; margin: 38px 0 0; padding: 18px;
  border-radius: 14px; background: var(--cream-dark); border: 1px solid var(--line);
}
.fest-sign img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--flame); display: block; }
.fest-sign p { margin: 0 !important; }
.fest-sign-wish { font-style: italic; color: var(--ink-soft); }
.fest-sign-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-top: 2px !important; }
.fest-sign-title { font-size: .88rem; color: var(--ink-soft); }
.fest-sign-cred { font-size: .8rem; color: var(--gold); margin: 4px 0 6px !important; }
.fest-sign a { font-weight: 700; font-size: .9rem; }

/* create-an-account panel (views/blog/signup-panel.ejs) */
.post-signup {
  margin: 34px 0 6px; border-color: color-mix(in srgb, var(--flame) 55%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--flame) 10%, var(--surface)), var(--surface) 60%);
}
.su-perks { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 6px; }
.su-perks li { position: relative; padding-left: 1.5em; color: var(--ink-soft); font-size: .96rem; }
.su-perks li::before { content: "\2713"; position: absolute; left: 0; color: var(--maroon); font-weight: 800; }
.su-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.su-wide { grid-column: 1 / -1; }
.su-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.su-field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.su-hint { font-weight: 500; color: var(--ink-soft); }
.su-field input, .su-field select {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font: 1rem var(--font-body); background: var(--cream); color: var(--ink);
}
.su-field input:focus, .su-field select:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 25%, transparent); }
.su-pass { position: relative; }
.su-pass input { padding-right: 68px; }
.su-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: none; border-radius: 6px;
  background: var(--cream-dark); color: var(--ink); font: 600 .82rem var(--font-body); cursor: pointer;
}
.su-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 10px; }
.su-submit { border: none; cursor: pointer; font-size: 1.02rem; padding: 13px 26px; text-decoration: none; }
.su-signin { margin: 0 !important; font-size: .92rem; color: var(--ink-soft); }
.su-fine { margin: 0 !important; font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .fest-family { grid-template-columns: 1fr; }
  .su-grid { grid-template-columns: 1fr; }
  .su-submit { width: 100%; text-align: center; }
  .fest-sign { flex-direction: column; align-items: center; text-align: center; }
}
