/* Guides and calculators (scripts/guides.mjs), on top of site.css. */
.guide { max-width: 780px; }
.guide h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 22px; }
.g-crumbs a { color: inherit; text-decoration: none; }
.g-crumbs a:hover { color: var(--ink); }
.g-answer { padding: clamp(18px, 3vw, 28px); border-radius: clamp(22px, 2.6vw, 32px); margin-top: 6px; }
.g-answer .label { margin-bottom: 10px; }
.g-answer p:last-child { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; }
.g-body { margin-top: clamp(28px, 4vw, 44px); font-size: 18px; line-height: 1.62; }
.g-body h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; margin: 1.7em 0 .5em; }
.g-body h3 { font-size: 20px; font-weight: 600; margin: 1.3em 0 .35em; }
.g-body p + p, .g-body ul + p, .g-body ol + p, .g-body p + ul, .g-body p + ol, .g-body .g-table + p { margin-top: .8em; }
.g-body ul, .g-body ol { padding-left: 1.25em; }
.g-body ul { list-style: disc; }
.g-body ol { list-style: decimal; }
.g-body li { margin-bottom: .4em; }
.g-body a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.g-body a:hover { text-decoration-color: var(--ink); }
.g-table { overflow-x: auto; margin: 1em 0; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.g-table th, .g-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table th { font-weight: 600; }
.g-q { margin-bottom: 10px; border-radius: 22px; }
/* Question cards reuse the home page FAQ (site.css): the answer lines up with the question. */
.g-q .faq-a p, .g-q .faq-a ul, .g-q .faq-a ol { padding: 0 24px 22px; margin: 0; font-size: 16.5px; }
.g-q .faq-a p + p { margin-top: -10px; }
.g-body .g-sources { list-style: none; padding: 0; font-size: 15.5px; color: var(--soft); }
.g-meta { margin-top: 28px; }
.g-cta { margin-top: clamp(32px, 5vw, 56px); padding: clamp(22px, 3.4vw, 36px); border-radius: clamp(26px, 2.6vw, 36px); }
.g-cta h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.025em; margin-bottom: 8px; }
.g-cta p { color: var(--soft); margin-bottom: 18px; max-width: 34em; }
.g-more { margin-top: clamp(32px, 5vw, 56px); }
.g-more > h2 { font: 400 12px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.g-card { display: block; padding: 20px; border-radius: 24px; text-decoration: none; color: inherit; transition: translate .25s ease; }
.g-card:hover { translate: 0 -3px; }
.g-card h3 { font-size: 18px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.g-card p { font-size: 14.5px; line-height: 1.45; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hub .g-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Calculators */
.g-tool { margin-top: 18px; padding: clamp(18px, 3vw, 28px); border-radius: clamp(22px, 2.6vw, 32px); }
.g-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.g-form label { display: grid; gap: 6px; font-size: 14px; color: var(--soft); }
.g-form input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 17px/1 var(--sans); }
.g-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.g-form .pill { min-height: 52px; border: 0; cursor: pointer; font-family: inherit; color: #2B1C24;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat, linear-gradient(100deg, #FFB7C9, #F78FBF 55%, #E58BE0);
  box-shadow: 0 8px 22px rgba(232, 110, 170, .45), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(190, 60, 140, .18);
  animation: pill-sheen 5.5s 1.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.g-form .pill::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .55) 1.1px, transparent 1.4px); }
.g-form .pill:hover { box-shadow: 0 16px 36px rgba(232, 110, 170, .55), 0 0 0 6px rgba(247, 143, 191, .22), inset 0 1px 0 rgba(255, 255, 255, .6); }
.g-form .pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.g-result { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.22, .8, .24, 1); }
.g-result.open { grid-template-rows: 1fr; }
.g-result-in { overflow: hidden; min-height: 0; }
.g-result.open .g-result-in > :first-child { margin-top: 18px; border-top: 1px solid var(--line); }
.g-result-in > * { animation: g-rise .5s cubic-bezier(.22, .8, .24, 1) both; }
.g-result-in > :nth-child(2) { animation-delay: .07s; } .g-result-in > :nth-child(3) { animation-delay: .14s; } .g-result-in > :nth-child(4) { animation-delay: .21s; }
@keyframes g-rise { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .g-result { transition: none; } .g-result-in > * { animation: none; } }
.g-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-row span { color: var(--soft); font-size: 15px; }
.g-row b { font-weight: 500; text-align: right; }
.g-main b { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.g-hint { font-size: 14.5px; color: var(--soft); margin-top: 12px; }
.g-error { padding: 12px 0; }
.g-tool > .fine { margin-top: 10px; }

/* Download card: the hero's warm pink, with a soft bloom and the drop in the corner. */
.g-cta { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); color: #2B1C24;
  background: radial-gradient(120% 140% at 0% 0%, #FFD9C9 0%, transparent 55%), radial-gradient(90% 120% at 100% 100%, #E9B8F2 0%, transparent 60%), linear-gradient(120deg, #FFC4B8, #F8A4BF 60%, #F3A0CF);
  box-shadow: 0 26px 60px -28px rgba(214, 90, 140, .55), inset 0 1px 0 rgba(255, 255, 255, .6); -webkit-backdrop-filter: none; backdrop-filter: none; }
.g-cta::after { content: ""; position: absolute; z-index: -1; right: clamp(-30px, -2vw, -10px); bottom: -46px; width: clamp(150px, 24vw, 230px); aspect-ratio: 24 / 29; background: url(/img/logo-drop.png) center / contain no-repeat; opacity: .5; rotate: 12deg; filter: saturate(1.1) drop-shadow(0 18px 30px rgba(180, 59, 240, .35)); }
.g-cta h2 { color: #2B1C24; }
.g-cta p { color: rgba(43, 28, 36, .78); }
@media (max-width: 620px) { .g-cta::after { opacity: .28; } }
