.hundred-page {
  --hundred-blue: #164e9d;
  --hundred-navy: #06183b;
  --hundred-green: #00a96b;
  --hundred-mint: #eafbf4;
  --hundred-line: #dbe6f1;
  --hundred-soft: #f7fbff;
  color: #09204a;
  background: #fff;
}

.hundred-page main {
  background:
    radial-gradient(circle at 18% 8%, rgba(59, 130, 246, .13), transparent 24rem),
    radial-gradient(circle at 88% 22%, rgba(16, 185, 129, .13), transparent 26rem),
    linear-gradient(#fff, #f8fbff 46%, #fff 100%);
}

.hundred-hero {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--hundred-line);
}

.hundred-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 54px;
}

.hundred-mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 18px 36px rgba(29, 78, 216, .22);
  margin-bottom: 22px;
}

.hundred-mark [data-dir-icon] {
  width: 58px;
  height: 58px;
  stroke-width: 1.8;
}

.hundred-mark svg {
  width: 58px;
  height: 58px;
}

.calendar-art {
  position: relative;
  min-height: 330px;
}

.calendar-board {
  position: absolute;
  inset: 0 0 auto auto;
  width: 380px;
  border: 1px solid #cddbea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 40, 80, .16);
  overflow: hidden;
}

.hundred-hero-source-art {
  position: absolute;
  right: -18px;
  top: 0;
  width: 520px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(15, 40, 80, .12));
}

.hundred-hero-source-art + .calendar-board {
  display: none;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #164e9d, #0ea5e9);
}

.calendar-head strong {
  font-size: 20px;
}

.calendar-head span {
  font-weight: 800;
  opacity: .9;
}

.calendar-grid-art {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 18px;
}

.calendar-grid-art b,
.calendar-grid-art span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
}

.calendar-grid-art b {
  color: #59728f;
}

.calendar-grid-art span {
  color: #10294f;
  background: #f3f7fb;
  font-weight: 800;
}

.calendar-grid-art .is-start {
  color: #164e9d;
  background: #dbeafe;
}

.calendar-grid-art .is-end {
  color: #fff;
  background: #00a96b;
}

.calendar-result-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 18px 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #cae8da;
}

.calendar-result-ribbon strong {
  display: block;
  color: #06183b;
  font-size: 18px;
}

.calendar-result-ribbon span {
  color: #0f766e;
  font-weight: 900;
}

.hundred-shell {
  padding: 28px 0 12px;
}

.hundred-layout {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(330px, .92fr) 330px;
  gap: 20px;
  align-items: start;
}

.hundred-card,
.hundred-side-card,
.hundred-info,
.hundred-related {
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--hundred-line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(17, 45, 85, .08);
}

.hundred-card,
.hundred-side-card {
  padding: 20px;
}

.hundred-card h2,
.hundred-side-card h2,
.hundred-info h2,
.hundred-related h2 {
  margin: 0;
  color: var(--hundred-navy);
  font-size: 22px;
}

.hundred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
}

.hundred-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff8eb;
  font-size: 12px;
  font-weight: 900;
}

.hundred-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.hundred-field span {
  color: #17325d;
  font-size: 14px;
  font-weight: 900;
}

.hundred-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cbd8e8;
  border-radius: 9px;
  padding: 0 14px;
  color: #071a3c;
  font-size: 17px;
  font-weight: 800;
}

.hundred-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 16px;
  background: #f4f8fc;
  border: 1px solid #dce6f0;
  border-radius: 10px;
}

.hundred-segment button,
.hundred-chip,
.hundred-actions button,
.faq-question {
  cursor: pointer;
  border: 0;
  font-weight: 900;
}

.hundred-segment button {
  min-height: 44px;
  border-radius: 8px;
  color: #12305c;
  background: transparent;
}

.hundred-segment button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #164e9d, #0ea5e9);
}

.hundred-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  color: #12305c;
  font-weight: 900;
}

.hundred-toggle input {
  width: 44px;
  height: 24px;
  accent-color: var(--hundred-green);
}

.hundred-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.hundred-chip {
  min-height: 40px;
  border-radius: 9px;
  background: #fff;
  color: #17325d;
  border: 1px solid #dce6f0;
}

.hundred-chip.is-active {
  color: #fff;
  background: #00a96b;
  border-color: #00a96b;
}

.hundred-actions {
  display: flex;
  gap: 12px;
}

.hundred-actions button {
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
}

.hundred-actions .primary {
  color: #fff;
  background: linear-gradient(135deg, #008a5f, #04b46d);
  box-shadow: 0 12px 22px rgba(0, 169, 107, .22);
}

.hundred-actions .secondary {
  color: #0b2a5b;
  background: #fff;
  border: 1px solid #cbd8e8;
}

.hundred-result {
  background: linear-gradient(145deg, #f4fbff, #ffffff 45%, #effaf4);
}

.hundred-result-date {
  margin: 4px 0 8px;
  color: #164e9d;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 950;
}

.hundred-weekday {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dff8eb;
  color: #0f766e;
  font-weight: 900;
}

.hundred-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 18px;
}

.hundred-timeline::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #164e9d, #00a96b);
}

.timeline-point {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.timeline-point i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #164e9d;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px #cbd8e8;
}

.timeline-point:last-child i {
  background: #00a96b;
}

.timeline-point strong {
  color: #06183b;
}

.timeline-point span {
  color: #58728f;
  font-size: 13px;
}

.hundred-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hundred-metric {
  padding: 12px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #fff;
}

.hundred-metric span {
  display: block;
  color: #667d98;
  font-size: 12px;
  font-weight: 800;
}

.hundred-metric strong {
  display: block;
  color: #06183b;
  margin-top: 5px;
}

.hundred-side-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hundred-example {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #fff;
}

.hundred-example i {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #ecfdf5);
  color: #164e9d;
}

.hundred-example i svg {
  width: 21px;
  height: 21px;
}

.hundred-example strong {
  display: block;
  color: #06183b;
}

.hundred-example span {
  display: block;
  color: #536f8d;
  font-size: 13px;
  margin-top: 2px;
}

.hundred-info {
  margin: 22px auto 0;
  padding: 22px;
}

.hundred-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hundred-info p,
.hundred-info li {
  color: #29476b;
  line-height: 1.56;
}

.hundred-formula {
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #dce6f0;
  color: #06183b;
  font-weight: 900;
  text-align: center;
}

.hundred-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 18px;
}

.hundred-table th,
.hundred-table td {
  border: 1px solid #dce6f0;
  padding: 13px;
  text-align: left;
}

.hundred-table th {
  background: #f4f8fc;
  color: #12305c;
}

.hundred-table td {
  color: #29476b;
}

.hundred-faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  color: #0b2a5b;
  background: #fff;
}

.faq-answer {
  display: none;
  margin: -5px 0 0;
  padding: 0 16px 14px;
  color: #29476b;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.hundred-related {
  margin: 24px auto 0;
  padding: 18px;
}

.hundred-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hundred-related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #fff;
  color: #0b2a5b;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .hundred-hero-grid,
  .hundred-layout,
  .hundred-info-grid {
    grid-template-columns: 1fr;
  }

  .calendar-art {
    min-height: 320px;
  }

  .calendar-board {
    left: 0;
    right: auto;
    width: min(100%, 390px);
  }

  .hundred-hero-source-art {
    left: 0;
    right: auto;
    width: min(520px, 100%);
  }

  .hundred-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hundred-hero {
    padding: 18px 0 10px;
  }

  .hundred-hero-grid {
    gap: 18px;
  }

  .hundred-mark {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .hundred-mark [data-dir-icon] {
    width: 44px;
    height: 44px;
  }

  .hundred-mark svg {
    width: 44px;
    height: 44px;
  }

  .hundred-hero h1 {
    font-size: 42px;
  }

  .hundred-hero p {
    font-size: 16px;
  }

  .hundred-badges {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .hundred-hero-source-art {
    width: 112%;
    left: -6%;
    top: 0;
  }

  .hundred-chips {
    grid-template-columns: repeat(3, 1fr);
  }

  .hundred-actions,
  .hundred-timeline,
  .hundred-metrics,
  .hundred-related-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hundred-actions {
    display: grid;
  }

  .hundred-timeline::before {
    left: 16px;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 4px;
    height: auto;
  }

  .timeline-point {
    grid-template-columns: 34px 1fr;
    justify-items: start;
  }
}

/* Final shell reset: nav and footer must match calculators.html. */
.hundred-page .directory-header {
  height: auto;
  border-bottom: 1px solid #dfe7f1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(17, 40, 77, .02);
}

.hundred-page .brand-word,
.hundred-page .directory-footer .brand-word {
  color: #061738;
}

.hundred-page .brand-word span,
.hundred-page .directory-footer .brand-word span {
  color: var(--color-green);
}

.hundred-page .brand-planet {
  background: transparent;
  border-color: #08ae64;
}

.hundred-page .brand-planet::before {
  border-color: #08ae64;
}

.hundred-page .brand-planet::after {
  border-top-color: #08ae64;
  box-shadow: 0 -8px 0 -2px #08ae64, 0 8px 0 -2px #08ae64;
}

.hundred-page .submit-btn {
  min-height: 36px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #12bd72 0%, #009e57 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 164, 91, .2);
}

.hundred-page .directory-footer {
  color: var(--color-ink);
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #dfe7f1;
}

.hundred-page .directory-footer .footer-brand-block p,
.hundred-page .directory-footer .footer-meta p,
.hundred-page .directory-footer .footer-columns a {
  color: var(--color-muted);
}

.hundred-page .directory-footer .footer-columns button {
  color: var(--color-ink);
}

.hundred-page .directory-footer .footer-socials a {
  border-color: #dce6f2;
  color: #071b43;
  background: #fff;
}

.hundred-page .directory-footer .lang-btn {
  border: 1px solid #dce8f2;
  color: var(--color-ink);
  background: #fff;
}
