/* Shared additions installed on every microsite by build_consent_rollout.py:
 * the main site's Uncut Sans typography, cookie-consent banner + modal, the
 * app-download band (styled after chavaramatrimony.com), the compact footer,
 * generated cookie-policy pages and generated brides/grooms subpages.
 *
 * The accent colour follows the site's own palette when it defines --accent
 * on :root (all 24 sites built 2026-07-29 do); otherwise a neutral teal.
 * Brand constants from chavaramatrimony.com: purple #851f83, aqua #8adee1.
 */
@font-face {
  font-family: 'uncut_sans_regular';
  src: url('../fonts/uncut-sans-regular.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Main-site typography everywhere. Icon fonts are re-asserted just below. */
body, h1, h2, h3, h4, h5, h6, p, a, li, button, input, select, textarea,
td, th, label, blockquote, figcaption, small, strong, em, dd, dt {
  font-family: 'uncut_sans_regular', Roboto, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Arial, sans-serif;
}
.fa, .fas, .far, .fab {
  font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
}
.glyphicon { font-family: 'Glyphicons Halflings' !important; }
.material-icons { font-family: 'Material Icons' !important; }
[class^="icon-"], [class*=" icon-"] { font-family: 'icomoon' !important; }

/* Responsive guard: legacy templates leak a few px of decorative/margin
   overflow (un-containered Bootstrap .rows, absolutely-positioned slider
   scenery). `clip` removes the sideways scroll on phones without creating a
   scroll container, so position: sticky keeps working — which overflow-x:
   hidden would break. Content is unaffected: the overflow is gutter/decor. */
html, body {
  overflow-x: clip;
}

:root {
  /* Semantic tokens — chavaramatrimony.com brand (light values).
     Dark-theme values from the same token sheet, kept for future use:
     bg-base #121218 · bg-base-strong #1a1a24 · bg-secondary #1e1e2a ·
     bg-secondary-strong #252532 · bg-tertiary #4a4d52 · bg-base-inverse #ffffff ·
     bg-white #1a1a24 · brand-primary-weakest #1e1530 · brand-custom #3d1a3d ·
     brand-secondary-weakest #0d2a2b · brand-secondary-weak #143838 ·
     error-weaker #2d1212 · error-strong #b91c1c · txt-primary #f5f5f7 ·
     txt-secondary #e6e7e9 */
  --bg-base: #ffffff;
  --bg-base-strong: #f6f3f6;
  --bg-secondary: #f6f6f6;
  --bg-secondary-strong: #f4f4f6;
  --bg-tertiary: #e6e7e9;
  --bg-base-inverse: #110008;
  --bg-base-dark: #000000;
  --bg-white: #ffffff;
  --bg-brand-primary-weakest: #f3e9f3;
  --bg-brand-custom: #f7d4f7;
  --bg-brand-secondary-weakest: #e6f8f8;
  --bg-brand-secondary-weak: #8adde1;
  --bg-error-weaker: #fee2e2;
  --bg-error-strong: #b91c1c;
  --txt-primary: #1f2123;
  --txt-secondary: #4a4d52;
  --txt-tertiary: #6f7378;
  --brand-primary: #851f82;

  /* Brand consistency: every microsite uses the main site's accent. This
     sheet loads last on every page, so it overrides the per-site --accent
     each generated site defines in its own style.css. */
  --accent: #851f82;
  --cc-accent: var(--brand-primary);
  --cm-purple: var(--brand-primary);
  --cm-aqua: var(--bg-brand-secondary-weak);
  --cc-ink: var(--bg-base-inverse);
  --cc-ink-soft: #b8aeb6;
  --cc-line: var(--bg-tertiary);
}

/* Legacy framework accents -> brand. The old Bootstrap/Materialize themes
   used blues, greens and deep purples for their CTAs and headers. */
.btn-primary, .btn-success, .btn-info,
.btn-primary:hover, .btn-success:hover, .btn-info:hover,
.btn-primary:focus, .btn-success:focus, .btn-info:focus {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover {
  filter: brightness(1.15);
}
.deep-purple, .page-footer.deep-purple {
  background-color: var(--brand-primary) !important;
}
.btn-danger {
  background-color: var(--bg-error-strong) !important;
  border-color: var(--bg-error-strong) !important;
}
/* Hero CTA on the (now purple) banner: brand secondary aqua, dark text —
   the main site's own accent-on-purple pattern. */
.btn-common, .btn-common:hover, .btn-common:focus {
  background: var(--bg-brand-secondary-weak) !important;
  border-color: var(--bg-brand-secondary-weak) !important;
  color: var(--txt-primary) !important;
}

.cc-linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ banner */

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--cc-ink);
  color: #eef1f6;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1.5;
}
.cc-inner {
  margin: 0 auto;
  display: flex;
  max-width: 1152px;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 17.6px 24px;
}
.cc-inner > div:first-child {
  flex: 1 1 384px;
}
.cc-banner h2,
.cc-modal-card h2 {
  margin: 0;
  font-size: 16.8px;
  font-weight: 700;
  color: inherit;
}
.cc-banner p {
  margin: 5.6px 0 0;
  font-size: 14px;
  color: var(--cc-ink-soft);
}
.cc-banner a,
.cc-modal-card a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-btn {
  border: 1px solid #6c7a91;
  border-radius: 9999px;
  background: transparent;
  padding: 8px 17.6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cc-btn:hover {
  border-color: #b3bcca;
}
.cc-btn-primary {
  background: var(--cm-purple);
  border-color: var(--cm-purple);
  color: #fff;
}
.cc-btn-primary:hover {
  filter: brightness(1.15);
}
.cc-btn:focus-visible,
.cc-close:focus-visible,
.cc-linklike:focus-visible,
.app-badge:focus-visible,
.cc-switch input:focus-visible + span {
  outline: 2px solid var(--cm-aqua);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------- modal */

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 30, 0.55);
  padding: 16px;
}
.cc-overlay[hidden] {
  display: none;
}
.cc-modal-card {
  width: 100%;
  max-width: 544px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  color: #3d4453;
  padding: 24px;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.cc-modal-card > p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #566178;
}
.cc-modal-card .cc-actions {
  margin-top: 20px;
  justify-content: flex-end;
}
.cc-modal-card .cc-btn {
  border-color: var(--cc-line);
  color: #475062;
}
.cc-modal-card .cc-btn:hover {
  border-color: #8b97ab;
}
.cc-modal-card .cc-btn-primary,
.cc-modal-card .cc-btn-primary:hover {
  background: var(--cm-purple);
  border-color: var(--cm-purple);
  color: #fff;
}
.cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-close {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #6c7a91;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.cc-close:hover {
  background: #e9ecf0;
}
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e9ecf0;
  margin-top: 16px;
  padding-top: 16px;
}
.cc-cat h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #23293a;
}
.cc-cat p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #566178;
}
.cc-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6c7a91;
  cursor: pointer;
}
.cc-switch-locked {
  cursor: default;
}
.cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cc-switch .sr-only,
.cc-policy .sr-only,
.ms-subpage .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cc-switch span:not(.sr-only) {
  position: relative;
  display: inline-block;
  height: 24px;
  width: 44px;
  border-radius: 9999px;
  background: #b3bcca;
  transition: background-color 0.15s ease;
}
.cc-switch span:not(.sr-only)::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: 18px;
  width: 18px;
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.15s ease;
}
.cc-switch input:checked + span:not(.sr-only) {
  background: var(--cm-purple);
}
.cc-switch input:checked + span:not(.sr-only)::after {
  transform: translateX(20px);
}
.cc-switch input:disabled + span:not(.sr-only) {
  opacity: 0.65;
}

/* -------------------------------------------------------- footer link pair */
/* Fallback only: pages whose footer already carries inline cookie links
   (the compact managed footer below) never get this element. */

.cc-footer-links {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
}
.cc-footer-links a,
.cc-footer-links .cc-linklike {
  color: inherit;
}

/* --------------------------------------------- app band (as the main site) */

.app-cta {
  padding: 24px 16px;
  background: transparent;
}
.app-cta-band {
  position: relative;
  overflow: hidden;
  max-width: 1152px;
  margin: 0 auto;
  border-radius: 40px;
  background: var(--cm-purple);
  color: #fff;
}
.app-cta-band::before,
.app-cta-band::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.app-cta-band::before {
  right: -12%;
  top: -30%;
  width: 560px;
  height: 560px;
  background: rgba(255, 255, 255, 0.05);
}
.app-cta-band::after {
  right: -4%;
  top: -8%;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.06);
}
.app-cta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 44px 40px 36px;
}
.app-cta-text {
  flex: 1 1 320px;
}
.app-cta-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}
.app-cta-sub {
  margin: 14px 0 0;
  font-size: 14px;
  color: #fff;
}
.app-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.app-cta-qr {
  width: 124px;
  height: 124px;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.app-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-badge {
  display: flex;
  align-items: center;
  width: 192px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  padding: 7px 18px;
  gap: 10px;
  line-height: 1.1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.app-badge:hover {
  background: #374151;
  transform: translateY(-4px);
  color: #fff;
}
.app-badge svg {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
}
.app-badge small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
}
.app-badge strong {
  display: block;
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  margin-top: 1px;
}
.app-cta-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 72px;
  background: var(--cm-aqua);
  color: #111827;
  padding: 22px 40px;
}
.app-cta-strip strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.app-cta-strip span {
  display: block;
  font-size: 14px;
  color: #111827;
}
@media (max-width: 640px) {
  .app-cta-main { padding: 30px 22px 26px; }
  .app-cta-strip { padding: 18px 22px; gap: 12px 32px; }
  .app-cta-qr { display: none; }
}

/* --------------------------------------------------- compact managed footer */
/* Hierarchy: brand (left) / disclaimer (centre) / credit (right), then a
   centred navigation row. Columns stack centred on phones. */

.ms-foot {
  background: var(--cc-ink);
  color: #cbd2de;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 22px 16px 14px;
}
.ms-foot .ms-foot-inner {
  width: 100% !important;
  max-width: 1152px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.ms-foot .ms-foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 32px;
}
.ms-foot .ms-foot-grid > div {
  flex: 1 1 300px;
}
.ms-foot .ms-foot-brand { text-align: left; }
.ms-foot .ms-foot-disc { text-align: center; }
.ms-foot .ms-foot-credit { text-align: right; }
.ms-foot p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #cbd2de !important;
}
.ms-foot .ms-foot-soft {
  color: #97a0b0 !important;
  font-size: 12.5px !important;
}
.ms-foot a,
.ms-foot .cc-linklike {
  color: #fff;
  font-size: 13.5px !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ms-foot .ms-foot-nav {
  margin-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px !important;
  text-align: center;
}
.ms-foot .ms-sep {
  margin: 0 8px;
  opacity: 0.55;
}
@media (max-width: 760px) {
  .ms-foot .ms-foot-brand,
  .ms-foot .ms-foot-credit {
    text-align: center;
  }
}

/* ----------------------------------------------------- generated policy page */

.cc-policy-page {
  margin: 0;
  background: #fff;
  color: #3d4453;
  line-height: 1.65;
}
.cc-policy {
  max-width: 704px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}
.cc-policy h1 {
  margin: 16px 0 0;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: #23293a;
}
.cc-policy-meta {
  margin: 4px 0 0;
  font-size: 13.6px;
  color: #6c7a91;
}
.cc-policy h2 {
  margin: 32px 0 0;
  font-size: 20px;
  color: #23293a;
}
.cc-policy h3 {
  margin: 16px 0 0;
  font-size: 16px;
  color: #3d4453;
}
.cc-policy p {
  margin: 9.6px 0 0;
}
.cc-policy a {
  color: var(--cc-accent);
  font-weight: 600;
}
.cc-policy-tablewrap {
  overflow-x: auto;
  margin-top: 12px;
}
.cc-policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cc-policy th,
.cc-policy td {
  border: 1px solid var(--cc-line);
  padding: 9.6px 11.2px;
  text-align: left;
  vertical-align: top;
}
.cc-policy th {
  background: #f6f7f9;
  color: #23293a;
}
.cc-policy code {
  font-size: 13px;
  color: var(--cc-accent);
}
.cc-policy-footer {
  margin-top: 48px;
  border-top: 1px solid #e9ecf0;
  padding-top: 20px;
  font-size: 13.6px;
  color: #6c7a91;
}

/* ------------------------------------------------- generated brides/grooms */

.ms-subpage {
  margin: 0;
  background: #fff;
  color: #3d4453;
  line-height: 1.7;
}
.ms-sub-head {
  border-bottom: 1px solid #e9ecf0;
  background: #fff;
}
.ms-sub-head-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.ms-sub-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--cc-accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.ms-sub-cta {
  display: inline-block;
  background: var(--cm-purple);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 18px;
  transition: filter 0.15s ease;
}
.ms-sub-cta:hover {
  filter: brightness(1.15);
  color: #fff;
}
.ms-sub-main {
  max-width: 736px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}
.ms-sub-main h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1c2130;
}
.ms-sub-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-accent);
}
.ms-sub-main h2 {
  margin: 30px 0 0;
  font-size: 21px;
  font-weight: 500;
  color: #1c2130;
}
.ms-sub-main p {
  margin: 14px 0 0;
  color: #475062;
}
.ms-sub-main a {
  color: var(--cm-purple);
  font-weight: 600;
}
.ms-sub-main .ms-sub-cta {
  color: #fff;
}
.ms-sub-main .ms-sub-cta-alt {
  color: var(--cm-purple);
}
.ms-sub-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ms-sub-ctas .ms-sub-cta {
  font-size: 15px;
  padding: 11px 24px;
}
.ms-sub-ctas .ms-sub-cta-alt {
  background: #fff;
  color: var(--cm-purple);
  border: 1px solid var(--cm-purple);
}
.ms-sub-ctas .ms-sub-cta-alt:hover {
  color: var(--cm-purple);
  background: #faf3fa;
}
.ms-sub-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: #6c7a91;
}
