/* Mayfair Tax Services — Debt Clock. Self-contained: works on the main site pages and on /lien/.
   Brand trade dress: navy, marigold and cream. Calm and factual: no red, no flashing, no countdown.
   The live counter is the one moving figure; it is still for reduced-motion visitors (debt-clock.js). */
.dc {
  --dc-navy: #16243b; --dc-ink-700: #24365a; --dc-cream: #f6f1e7; --dc-ink: #1a1a1a; --dc-muted: #4a4a46; --dc-line: #e3dccd;
  --dc-gold: #f2b632; --dc-gold-soft: #fdf0cf; --dc-gold-deep: #7a5a22; --dc-gold-press: #d99a17;
  --dc-head: "Libre Caslon Text", Georgia, serif; --dc-body: "Source Serif 4", Georgia, serif; --dc-ui: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--dc-ink); font-family: var(--dc-body);
}
.dc-wrap { padding: 36px 0; }
/* Lines up with the page: full width of the site container, left edges aligned with the content above. */
.dc-panel {
  background: #fff; border: 1px solid var(--dc-line); border-top: 5px solid var(--dc-gold); border-radius: 16px;
  padding: 28px 18px 22px; margin: 0;
}

.dc .dc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--dc-ui); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-gold-deep);
}
/* Small clock icon */
.dc .dc-eyebrow::before {
  content: ""; width: 18px; height: 18px; flex: none; background: var(--dc-gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12 6.5V12l3.8 2.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12 6.5V12l3.8 2.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dc h2 { font-family: var(--dc-head); font-weight: 400; color: var(--dc-navy); font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.dc h3 { font-family: var(--dc-head); font-weight: 400; color: var(--dc-navy); font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.dc p { margin: 0 0 12px; line-height: 1.55; }
.dc-lede { font-size: 17px; color: var(--dc-muted); max-width: 640px; }

/* Form */
.dc-form {
  display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; margin: 18px 0 4px; padding: 16px;
  background: var(--dc-cream); border-radius: 14px;
}
.dc-field label { display: block; font-family: var(--dc-ui); font-size: 15px; font-weight: 600; color: var(--dc-navy); margin: 0 0 6px; }
.dc-field .dc-help { font-family: var(--dc-ui); font-size: 13.5px; color: var(--dc-muted); margin: 6px 0 0; }
.dc-money { position: relative; }
.dc-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--dc-ui); font-size: 20px; font-weight: 600; color: var(--dc-navy); pointer-events: none; }
.dc input {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 14px; font-family: var(--dc-ui); font-size: 19px; color: var(--dc-ink);
  background: #fff; border: 1px solid #b9b2a3; border-radius: 10px;
}
.dc-money input { padding-left: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dc input:focus, .dc button:focus, .dc a:focus, .dc summary:focus { outline: 3px solid var(--dc-navy); outline-offset: 2px; }
.dc input[aria-invalid="true"] { border-color: var(--dc-navy); border-width: 2px; }
.dc-error { font-family: var(--dc-ui); font-size: 15px; color: var(--dc-navy); font-weight: 600; margin: 0; }

/* Buttons: refined, not plain. Gold is the commitment (Stop the clock); navy is the calculator step. */
.dc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--dc-ui); font-size: 16.5px; font-weight: 600; letter-spacing: .015em; text-align: center; line-height: 1.35;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.dc-btn:active { transform: translateY(0); }
.dc-btn:focus-visible { outline: 2px solid var(--dc-navy); outline-offset: 4px; }

/* Calculator step: deep navy, fine gold hairline, soft top highlight. */
.dc-btn--calc {
  color: var(--dc-cream);
  background: linear-gradient(180deg, #2b3f63 0%, var(--dc-navy) 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 182, 50, .55), inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(22, 36, 59, .2);
}
.dc-btn--calc:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(242, 182, 50, .85), inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(22, 36, 59, .6); }

/* Commitment: sculpted gold, light top edge, slim arrow that steps forward on hover. */
.dc-btn--primary {
  min-height: 56px; padding: 14px 30px; font-size: 17.5px; color: var(--dc-navy);
  background: linear-gradient(180deg, #f7cb63 0%, var(--dc-gold) 52%, #e6a723 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(122, 90, 34, .35), 0 1px 2px rgba(22, 36, 59, .16), 0 10px 22px -14px rgba(122, 90, 34, .7);
}
.dc-btn--primary:hover { transform: translateY(-1px); filter: saturate(1.05) brightness(1.02); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(122, 90, 34, .4), 0 2px 4px rgba(22, 36, 59, .16), 0 14px 26px -14px rgba(122, 90, 34, .8); }
.dc-arrow { display: inline-block; font-weight: 400; transition: transform .2s ease; }
.dc-btn--primary:hover .dc-arrow { transform: translateX(3px); }

/* Thin rim around Stop the clock: a still hairline, and one quick lap of light every 3 seconds. */
@property --dc-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dc-cta::before, .dc-cta::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.dc-cta::before { background: rgba(122, 90, 34, .28); }
.dc-cta::after {
  background: conic-gradient(from var(--dc-angle), transparent 0deg, transparent 270deg, rgba(242, 182, 50, .7) 318deg, var(--dc-gold-deep) 345deg, transparent 360deg);
  opacity: 0; animation: dc-rim 3s ease-in-out infinite;
}
@keyframes dc-rim {
  0% { --dc-angle: 0deg; opacity: 0; }
  4% { opacity: 1; }
  22% { opacity: 1; }
  28% { --dc-angle: 360deg; opacity: 0; }
  100% { --dc-angle: 360deg; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dc-cta::after { animation: none; } .dc-btn, .dc-arrow { transition: none; } }

/* Results */
.dc-result { margin-top: 22px; }
/* The live counter: a navy ticker with gold figures. */
.dc-live {
  margin: 0 0 14px; padding: 18px 20px; border-radius: 14px; background: var(--dc-navy); color: var(--dc-cream);
  font-family: var(--dc-ui); font-size: 15.5px; line-height: 1.45;
}
.dc-live [data-dc="balance"] { color: #fff; font-weight: 700; }
.dc-live strong {
  display: block; margin-top: 6px; font-family: var(--dc-ui); font-size: 40px; line-height: 1.1; font-weight: 700;
  color: var(--dc-gold); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.dc-grid div { background: #fff; border: 1px solid var(--dc-line); border-top: 4px solid var(--dc-gold); border-radius: 12px; padding: 12px 14px; }
.dc-grid dt { font-family: var(--dc-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-gold-deep); margin: 0 0 4px; }
.dc-grid dd { margin: 0; font-family: var(--dc-ui); font-size: 26px; font-weight: 700; color: var(--dc-navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.dc-grid dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--dc-muted); }
.dc-split { font-family: var(--dc-ui); font-size: 14.5px; color: var(--dc-muted); }

.dc-proj { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--dc-ui); font-size: 16px; margin: 8px 0 18px; font-variant-numeric: tabular-nums; border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; }
.dc-proj caption { text-align: left; font-family: var(--dc-head); color: var(--dc-navy); font-size: 19px; padding: 0 0 8px; }
.dc-proj th, .dc-proj td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--dc-line); }
.dc-proj tbody tr:last-child th, .dc-proj tbody tr:last-child td { border-bottom: 0; }
.dc-proj tbody tr:nth-child(even) { background: #fbf8f2; }
.dc-proj td { text-align: right; }
.dc-proj td:last-child { font-weight: 700; color: var(--dc-navy); }
.dc-proj thead th { background: var(--dc-cream); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-gold-deep); }
.dc-proj thead th + th { text-align: right; }

.dc-deadline { background: var(--dc-gold-soft); border-left: 5px solid var(--dc-gold); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }

/* What stops it / How fast we move: two cards with gold check marks */
.dc-two { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 18px; }
.dc-fix, .dc-speed { border-radius: 14px; padding: 16px 16px 10px; }
.dc-fix { background: var(--dc-gold-soft); }
.dc-speed { background: var(--dc-cream); }
.dc ul { margin: 0; padding: 0; list-style: none; }
.dc li { position: relative; margin: 0 0 10px; padding-left: 30px; line-height: 1.5; }
.dc li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--dc-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2316243b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.dc-speed li::before { background-color: var(--dc-navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23f2b632' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.dc-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 4px 0 16px; }
.dc-actions .dc-link { font-family: var(--dc-ui); font-size: 16px; font-weight: 600; color: var(--dc-navy); text-decoration: underline; text-decoration-color: var(--dc-gold); text-underline-offset: 4px; }
.dc details { font-family: var(--dc-ui); font-size: 15px; margin: 0 0 10px; border-top: 1px solid var(--dc-line); padding-top: 10px; }
.dc summary { cursor: pointer; color: var(--dc-navy); font-weight: 600; min-height: 32px; list-style: none; display: flex; align-items: center; gap: 8px; }
.dc summary::-webkit-details-marker { display: none; }
.dc summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--dc-cream); color: var(--dc-navy); font-weight: 700; }
.dc details[open] summary::before { content: "–"; }
.dc details p { margin: 8px 0 0; color: var(--dc-muted); }
.dc-fine { font-family: var(--dc-ui); font-size: 13px; color: var(--dc-muted); margin: 0; }
.dc [hidden] { display: none !important; }

@media (min-width: 640px) {
  .dc-panel { padding: 38px 34px 28px; }
  .dc h2 { font-size: 32px; }
  .dc-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; padding: 18px 20px; }
  /* Labels share one line; the button lines up with the inputs, not with the help text below them. */
  .dc-form > .dc-btn { margin-top: 30px; }
  .dc-form.dc-form--one { grid-template-columns: 1fr auto; }
  .dc-form .dc-error { grid-column: 1 / -1; }
  .dc-grid { grid-template-columns: repeat(4, 1fr); }
  .dc-live strong { font-size: 48px; }
  .dc-two { grid-template-columns: 1fr 1fr; }
}
/* /lien/ pages wrap the clock in their own card. */
#debt-clock.card { padding: 0; border: 0; background: transparent; }
