/* "When is my CE due?" (/ce/due/): the public page, the lookup result and the signup pages, plus
   the "Subscribe in your calendar" block on the tracker. Light and editorial; builds on tokens.css
   and base.css. No gradients, dark bands or left-border cards. */

.cedue h1 { font-size: 44px; line-height: 1.12; max-width: 760px; }
.cedue .kicker a { color: inherit; text-decoration: none; }
.cedue .kicker a:hover { text-decoration: underline; }
.cedue .lede { max-width: 760px; }
.cd-sources { max-width: 760px; margin: -16px 0 32px; font-size: 13px; color: var(--muted); }
.cedue .section { max-width: 820px; }
.cedue .section h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--ink); }
.cedue .narrow, .cedue.narrow { max-width: calc(760px + 2 * var(--gutter)); margin-left: 0; }

/* The lookup card */
.cd-lookup { max-width: 640px; margin-top: 8px; }
.cd-card-title { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
.cd-lookup > p { margin: 0 0 20px; color: var(--ink-3); }
.cd-form { max-width: 520px; }
.cd-form .btn { justify-self: start; }
.cd-form input[type=text], .cd-form input[type=email] { width: 100%; }
.cd-field-error { margin: -10px 0 0; font-size: 14px; font-weight: 600; color: var(--live); }
.cd-form [aria-invalid="true"] { border-color: var(--live); }
.cd-find { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.cd-find summary { display: flex; align-items: center; min-height: var(--touch); font-weight: 600; color: var(--accent); cursor: pointer; }
.cd-find[open] summary { margin-bottom: 12px; }

/* Who owes what */
.cd-who h3 { font-size: 17px; }
.cd-who p { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.cd-who .rule-hours { margin-top: 8px; }
.cd-year { margin-top: 24px !important; }

/* "Find my CRD" results */
.cd-candidates { max-width: 760px; margin-top: 8px; }
.cd-candidate { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cd-candidate .muted { font-size: 15px; }
.cd-candidate .btn { flex: none; }

/* The result */
.cd-isyou { max-width: 760px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cd-isyou p { margin: 0; }
.cd-isyou-name { font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }
.cd-isyou .muted { margin-top: 6px; font-size: 15px; }
.cd-obligations { margin-top: 4px; }
.cd-ob p { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.cd-ob .rule-hours { margin-top: 10px; }
.cd-note { margin-top: 24px; font-size: 15px; }
.cd-offer { margin-top: 48px; max-width: 640px; }
.cd-offer > p { margin: 0 0 16px; color: var(--ink-3); }
.cd-offer .muted { margin: 16px 0 0; font-size: 14px; }
.cd-offer .check span { font-size: 15px; line-height: 1.45; }
.cd-download { max-width: 760px; margin-top: 28px; font-size: 15px; }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.cd-ce-note { font-size: 14px; color: var(--ink-3); }

/* The calendar link, shown once */
.cd-link-label { display: block; margin: 20px 0 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.cd-link { width: 100%; min-height: var(--touch); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }

/* "Subscribe in your calendar" (tracker dashboard and the signup welcome) */
.cd-cal { max-width: 820px; }
.cd-cal-state { margin: 0 0 12px; color: var(--ink-3); font-size: 15px; }
.cd-cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cd-cal-actions form { margin: 0; }
.cd-cal-actions .link-button { min-height: var(--touch); }

@media (max-width: 640px) {
  .cedue h1 { font-size: 34px; }
  .cedue .lede { font-size: 17px; }
  .cd-lookup, .cd-offer { padding: 20px; }
  .cd-form .btn, .cd-cal-actions .btn { width: 100%; justify-content: center; }
  .cd-cal-actions form { flex: 1 1 100%; }
  .cd-candidate { flex-direction: column; align-items: flex-start; }
}
