/* Shared styles for /calculators/ pages (Tailwind 2 CDN has no orange palette). */
.hover\:text-orange-600:hover { color: #ea580c; }

.gg-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.gg-label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.gg-hint { font-size: .75rem; color: #6b7280; margin-top: .25rem; }

.gg-input {
  width: 100%; border: 1px solid #d1d5db; border-radius: .5rem; padding: .55rem .7rem;
  font-size: 1rem; background: #fff; color: #111827; font-variant-numeric: tabular-nums;
}
.gg-input:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.2); }
.gg-input[aria-invalid="true"] { border-color: #dc2626; }

.gg-unit { position: relative; }
.gg-unit .gg-input { padding-right: 2.6rem; }
.gg-unit span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; color: #6b7280; pointer-events: none; }

/* Segmented toggle built from radio inputs */
.gg-seg { display: inline-flex; background: #f3f4f6; border-radius: .6rem; padding: .2rem; }
.gg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.gg-seg label { padding: .4rem .9rem; border-radius: .45rem; font-size: .9rem; font-weight: 600; color: #4b5563; cursor: pointer; user-select: none; }
.gg-seg input:checked + label { background: #fff; color: #ea580c; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.gg-seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(234,88,12,.3); }

.gg-result-main { background: #fff7ed; border: 2px solid #fb923c; border-radius: 1rem; }
.gg-big { font-size: 2.25rem; font-weight: 800; color: #ea580c; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gg-num { font-variant-numeric: tabular-nums; font-weight: 700; }

.gg-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gg-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; font-weight: 600; padding: .4rem .5rem; border-bottom: 1px solid #e5e7eb; }
.gg-table td { padding: .55rem .5rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.gg-table td.gg-num { text-align: right; white-space: nowrap; }
.gg-table th.gg-right { text-align: right; }

.gg-btn { display: inline-block; background: #ea580c; color: #fff; font-weight: 600; border-radius: .5rem; padding: .55rem 1rem; cursor: pointer; border: 0; }
.gg-btn:hover { background: #f97316; }
.gg-btn-ghost { display: inline-block; background: #fff; color: #374151; font-weight: 600; border: 1px solid #d1d5db; border-radius: .5rem; padding: .5rem .9rem; cursor: pointer; }
.gg-btn-ghost:hover { border-color: #ea580c; color: #ea580c; }

.gg-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: #111827; }
.gg-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: #111827; }
.gg-prose p { margin: 0 0 1rem; line-height: 1.7; color: #374151; }
.gg-prose ul, .gg-prose ol { margin: 0 0 1rem 1.25rem; line-height: 1.7; color: #374151; }
.gg-prose ul { list-style: disc; }
.gg-prose ol { list-style: decimal; }
.gg-prose a { color: #ea580c; text-decoration: underline; }
.gg-prose code { background: #f3f4f6; border-radius: .25rem; padding: .05rem .3rem; font-size: .9em; }
.gg-prose .gg-sources li { font-size: .9rem; }

.gg-faq details { border-bottom: 1px solid #e5e7eb; padding: .9rem 0; }
.gg-faq summary { font-weight: 600; cursor: pointer; color: #111827; }
.gg-faq details p { margin: .6rem 0 0; }

[hidden] { display: none !important; }
.gg-prose > h2:first-child { margin-top: 0; }
