/* actuary.info flashcards — styles tuned to the Willys app design system.
   Light theme (matches the site); ocean accent; squircle cards; rating semantics. */
:root {
  --fc-bg: #F4F4F7; --fc-surface: #FFFFFF; --fc-surface2: #FBFBFD;
  --fc-sep: rgba(60,60,67,.12); --fc-label: #1A1A1C; --fc-label2: rgba(60,60,67,.62);
  --fc-label3: rgba(60,60,67,.40); --fc-fill: rgba(120,120,128,.10);
  --fc-ocean: #5E8AC7; --fc-ocean-wash: rgba(94,138,199,.14);
  --fc-green: #34A853; --fc-red: #E0533D; --fc-blue: #3B82C4;
  --fc-shadow: 0 2px 10px rgba(20,20,40,.06), 0 1px 2px rgba(20,20,40,.05);
  --fc-shadow-lg: 0 18px 40px rgba(20,20,40,.12);
  --fc-radius: 24px;
}
/* Light-only to match the rest of the site (base.css has no dark mode);
   a dark widget on a light site reads as broken. */

.fc-wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem;
  font-family: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', system-ui, sans-serif; color: var(--fc-label); }
.fc-wrap * { box-sizing: border-box; }

/* breadcrumb */
.fc-crumb { font-size: .8rem; color: var(--fc-label2); margin-bottom: 1rem; }
.fc-crumb a { color: var(--fc-ocean); text-decoration: none; }
.fc-crumb a:hover { text-decoration: underline; }

/* hero */
.fc-hero { margin-bottom: 1.5rem; }
.fc-examchip { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--fc-ocean); background: var(--fc-ocean-wash);
  padding: .28rem .6rem; border-radius: 6px; margin-bottom: .7rem; }
.fc-hero h1 { font-size: 1.9rem; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.fc-hero .fc-sub { font-size: 1.02rem; color: var(--fc-label2); line-height: 1.55; margin: 0 0 .75rem; }
.fc-hero .fc-stats { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--fc-label2); flex-wrap: wrap; }
.fc-hero .fc-stats b { color: var(--fc-label); font-weight: 700; font-variant-numeric: tabular-nums; }

/* tag chips */
.fc-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.fc-tag { font-size: .78rem; font-weight: 500; color: var(--fc-label2); background: var(--fc-fill);
  border: 1px solid transparent; padding: .32rem .6rem; border-radius: 999px; cursor: pointer; transition: .12s; }
.fc-tag:hover { color: var(--fc-label); }
.fc-tag.on { color: #fff; background: var(--fc-ocean); border-color: var(--fc-ocean); }

/* card stage + flip */
.fc-stage { perspective: 1600px; margin-bottom: .9rem; }
.fc-card { position: relative; width: 100%; min-height: 240px; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.7,.2,1); cursor: pointer; }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--fc-surface); border: 1px solid var(--fc-sep); border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow); padding: 1.6rem 1.6rem 2.2rem; overflow: auto;
  display: flex; flex-direction: column; }
.fc-back { transform: rotateY(180deg); }
.fc-tagchip { align-self: flex-start; font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--fc-label3); margin-bottom: .9rem; }
.fc-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--fc-ocean); margin-bottom: .7rem; }
.fc-q { font-size: 1.22rem; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.fc-a { font-size: 1.04rem; line-height: 1.62; color: var(--fc-label); }
.fc-hint { margin-top: auto; padding-top: 1rem; font-size: .76rem; color: var(--fc-label3); }
.fc-q .katex, .fc-a .katex { font-size: 1.04em; }

/* controls */
.fc-controls { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.fc-nav { font-size: .9rem; font-weight: 600; color: var(--fc-label2); background: var(--fc-fill);
  border: none; padding: .7rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.fc-nav:hover { color: var(--fc-label); }
.fc-rate { display: flex; gap: .5rem; justify-content: center; }
.fc-show { width: 100%; max-width: 320px; font-size: .98rem; font-weight: 700; color: #fff;
  background: var(--fc-ocean); border: none; padding: .8rem 1rem; border-radius: 999px; cursor: pointer; }
.fc-r { flex: 1; max-width: 130px; font-size: .9rem; font-weight: 700; color: #fff; border: none;
  padding: .8rem .5rem; border-radius: 999px; cursor: pointer; transition: transform .1s; }
.fc-r:active { transform: scale(.96); }
.fc-again { background: var(--fc-red); }
.fc-good  { background: var(--fc-blue); }
.fc-easy  { background: var(--fc-green); }

.fc-meta { display: flex; align-items: center; gap: .8rem; font-size: .8rem; color: var(--fc-label2);
  font-variant-numeric: tabular-nums; }
.fc-meta button { margin-left: auto; font: inherit; color: var(--fc-label2); background: none; border: none;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fc-meta button + button { margin-left: .8rem; }
.fc-meta button:hover { color: var(--fc-label); }

/* CTAs */
.fc-cta { margin: 2rem 0; padding: 1.4rem 1.5rem; background: var(--fc-surface2); border: 1px solid var(--fc-sep);
  border-radius: 16px; }
.fc-cta h3 { margin: 0 0 .4rem; font-size: 1.08rem; font-weight: 700; }
.fc-cta p { margin: 0 0 .9rem; font-size: .9rem; color: var(--fc-label2); line-height: 1.55; }
.fc-btnrow { display: flex; flex-wrap: wrap; gap: .6rem; }
.fc-btn { font-size: .88rem; font-weight: 600; text-decoration: none; padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid var(--fc-ocean); color: var(--fc-ocean); background: transparent; cursor: pointer; }
.fc-btn.solid { background: var(--fc-ocean); color: #fff; }
.fc-btn:hover { opacity: .88; }
.fc-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.fc-form input { flex: 1; min-width: 200px; font: inherit; font-size: .9rem; padding: .6rem .8rem;
  border: 1px solid var(--fc-sep); border-radius: 999px; background: var(--fc-surface); color: var(--fc-label); }

/* static "all cards" SEO list */
.fc-all { margin-top: 2.5rem; }
.fc-all > summary { font-size: 1rem; font-weight: 700; cursor: pointer; padding: .6rem 0; }
.fc-all ol { list-style: none; padding: 0; margin: 1rem 0 0; }
.fc-all li { border-top: 1px solid var(--fc-sep); padding: 1rem 0; }
.fc-all .q { font-weight: 600; line-height: 1.5; }
.fc-all .a { color: var(--fc-label2); line-height: 1.6; margin-top: .4rem; }
.fc-all .t { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fc-label3); margin-bottom: .3rem; }

/* ---------- hub ---------- */
.fc-hubhead { margin-bottom: 1.75rem; }
.fc-hubhead h1 { font-size: 2.1rem; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .6rem; }
.fc-hubhead p { font-size: 1.06rem; color: var(--fc-label2); line-height: 1.6; margin: 0; }
.fc-section { margin-top: 2.25rem; }
.fc-section h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
.fc-section .fc-secsub { font-size: .9rem; color: var(--fc-label2); margin: 0 0 1rem; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.fc-subsec { margin-top: 1.5rem; }
.fc-sublabel { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fc-ocean); margin-bottom: .15rem; }
.fc-subnote { font-size: .82rem; color: var(--fc-label2); margin: 0 0 .7rem; }
.fc-examlink { padding: 1.5rem 1.5rem; }
.fc-examlink h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.fc-examlink p { font-size: .9rem; }
.fc-deckcard { display: block; text-decoration: none; color: inherit; background: var(--fc-surface);
  border: 1px solid var(--fc-sep); border-radius: 14px; padding: 1.1rem 1.15rem; box-shadow: var(--fc-shadow);
  transition: transform .14s, box-shadow .14s; position: relative; }
.fc-deckcard:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow-lg); }
.fc-deckcard .fc-dc-spine { position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: var(--fc-ocean); opacity: .8; }
.fc-deckcard h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; padding-left: .6rem; line-height: 1.3; }
.fc-deckcard p { font-size: .82rem; color: var(--fc-label2); margin: 0 0 .6rem; padding-left: .6rem; line-height: 1.45; }
.fc-deckcard .fc-dc-meta { font-size: .76rem; color: var(--fc-label3); padding-left: .6rem;
  font-variant-numeric: tabular-nums; display: flex; gap: .8rem; }
.fc-deckcard .fc-dc-meta b { color: var(--fc-ocean); font-weight: 700; }

@media (max-width: 600px) {
  .fc-hero h1 { font-size: 1.55rem; }
  .fc-controls { grid-template-columns: 1fr; }
  .fc-nav { display: none; }
  .fc-face { padding: 1.25rem 1.25rem 1.8rem; }
  .fc-q { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-card { transition: none; }
}
