/* Hour Calculator US v5 design layer. Exact preview palette and
   layout from the approved homepage preview: background #f8fafc is
   set by the theme, ink #0f172a, navy #0f2040, blue #2563eb,
   blue2 #1d4ed8, muted #475569, line #e2e8f0, green #15803d.
   No images, no webfonts, no external requests. This file styles
   only plugin sections. Theme header, footer and page wrap live in
   the Hour Calculator theme, not here. */
.hcu-calculator, .hero, section, .cards, .steps, .stats, .faq, .dir-grid { box-sizing: border-box; }
.hero { text-align: center; padding: 44px 0 22px; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; color: #0f2040; }
.hero p { font-size: 18px; color: #475569; max-width: 640px; margin: 0 auto; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.badge.ok { color: #15803d; }
.calc { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 18px 45px rgba(15,32,64,0.12); padding: 24px; margin: 8px 0 28px; scroll-margin-top: 84px; }
.calc h2 { margin: 0 0 4px; font-size: 24px; color: #0f2040; }
.calc .sub, .calc .hcu-intro { color: #475569; margin: 0 0 18px; }
section { padding: 28px 0; scroll-margin-top: 84px; }
section h2 { font-size: 28px; margin: 0 0 8px; color: #0f2040; letter-spacing: -0.02em; }
section .lead { color: #475569; margin: 0 0 20px; max-width: 700px; }
section h3 { color: #0f2040; }
section p { color: #475569; }
section p.lead { color: #475569; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.card p { margin: 0; color: #475569; font-size: 15px; }
.card .example { margin-top: 12px; background: #f1f5f9; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: #0f2040; }
.card button { margin-top: 14px; align-self: flex-start; background: #0f2040; border: 0; color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.card button[aria-expanded="true"] { background: #2563eb; }
.hcu-card-panel { display: none; }
.hcu-card-panel.is-open { display: block; }
.hcu-card-panel { border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; background: #fff; margin-top: 20px; }
.hcu-card-panel h3 { margin-top: 0; color: #0f2040; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: #0f2040; color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 10px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; color: #0f172a; }
.chip[aria-pressed="true"] { background: #0f2040; color: #fff; border-color: #0f2040; }
.state-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; margin-top: 18px; }
.state-panel h3 { margin: 0 0 6px; font-size: 20px; color: #0f2040; }
.state-panel p { margin: 6px 0; color: #475569; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat { background: #0f2040; color: #fff; border-radius: 16px; padding: 24px 16px; }
.stat b { display: block; font-size: 22px; }
.stat span { opacity: 0.85; font-size: 14px; }
.faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: #475569; margin: 8px 0 0; }
.note { font-size: 13px; color: #475569; margin-top: 12px; }
.hcu-small { font-size: 0.9rem; color: #64748b; }
.hcu-virtual-main { max-width: 1080px; margin: 0 auto; padding: 0 18px; box-sizing: border-box; }
.hcu-internal-links { margin-top: 1.25rem; }
.hcu-internal-links ul { padding-left: 1.25rem; }
.hcu-internal-links a { color: #2563eb; }
.hcu-index-list { columns: 2; column-gap: 2rem; }
.dir-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.dir-pill { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 700; cursor: pointer; color: #0f172a; font-size: 14px; }
.dir-pill .dir-pill-icon { width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; display: grid; place-items: center; font-size: 14px; }
.dir-pill .dir-pill-count { background: #eef2ff; color: #1d4ed8; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.dir-pill[aria-pressed="true"] { background: #0f2040; color: #fff; border-color: #0f2040; }
.dir-pill[aria-pressed="true"] .dir-pill-count { background: #fff; color: #0f2040; }
.dir-grid { display: block; margin: 0 0 24px; }
.dir-group { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; width: 100%; margin: 0 0 20px; }
.dir-group-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f0; }
.dir-group-icon { width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.dir-group-titles { flex: 1; min-width: 0; }
.dir-group-titles h3 { margin: 0; font-size: 18px; color: #0f2040; }
.dir-group-titles p { margin: 2px 0 0; color: #475569; font-size: 13px; }
.dir-group-badge { background: #eef2ff; color: #1d4ed8; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dir-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.dir-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; color: #0f172a; font: inherit; text-decoration: none; }
.dir-row:hover { background: #f8fafc; text-decoration: none; }
.dir-row:hover .dir-row-name { color: #1d4ed8; }
.dir-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: #f1f5f9; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #475569; }
.dir-row-text { flex: 1; min-width: 0; }
.dir-row-name { display: block; font-weight: 700; font-size: 15px; color: #1d4ed8; }
.dir-row-sub { display: block; font-size: 13px; color: #475569; margin-top: 1px; }
.dir-arrow { font-size: 20px; color: #2563eb; font-weight: 800; flex-shrink: 0; }
.location-panel { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 16px; padding: 18px 20px; margin: 0 0 28px; }
.location-panel h3 { margin: 0 0 6px; font-size: 20px; color: #0f2040; }
.location-panel p { margin: 6px 0; color: #475569; }
.auto-link-box { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 16px; padding: 20px; margin: 0 0 18px; }
.auto-link-box h3 { margin: 0 0 8px; font-size: 20px; color: #0f2040; }
.auto-link-box p { margin: 6px 0; color: #475569; }
.auto-link-box ol { margin: 8px 0 8px 20px; color: #334155; }
.auto-link-status { font-weight: 800; color: #0f2040; margin-top: 12px; }
@media (max-width: 900px) { .dir-rows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .hero h1 { font-size: 32px; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .calc { padding: 18px; }
}
@media (max-width: 600px) {
  .dir-rows { grid-template-columns: 1fr; }
  .hcu-index-list { columns: 1; }
}
