/* Shared shell for the blog's calculators and prompt builder. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/filament/filament/inter/inter-latin-wght-normal-DIHYUR35.woff2') format('woff2'); }
* { box-sizing: border-box; }
body { margin: 0; color: #20252d; background: #f6f8fa; font: 14px/1.55 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: #2955c3; }
.tool-page-header { padding: 20px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.tool-page-header > div { max-width: 960px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tool-page-header img { display: block; width: 142px; height: auto; }
.tool-page-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.tool-page-header a { font-size: 13px; text-decoration: none; }
.tool-main { max-width: 780px; margin: auto; padding: 32px 20px 48px; }
.tool-container { padding: 26px; background: #fff; border: 1px solid #d9dfe7; border-radius: 8px; }
.tool-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.tool-subtitle { margin: 0 0 24px; color: #596271; font-size: 14px; }
.tool-container h2 { margin: 22px 0 12px; font-size: 17px; font-weight: 600; }
.tool-container h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.form-row, .tool-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { margin-bottom: 16px; min-width: 0; }
label, legend { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 40px; padding: 8px 10px; color: #20252d; background: #fff; border: 1px solid #cdd3dc; border-radius: 4px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #2955c3; outline-offset: 2px; }
[aria-invalid=true] { border-color: #c33d3d !important; }
fieldset { min-width: 0; margin: 0 0 16px; padding: 16px; border: 1px solid #e0e4ea; border-radius: 6px; }
fieldset legend { padding: 0 5px; }
.hint, .assumptions { margin: 6px 0 0; font-size: 12px; color: #596271; }
.preset-row, .tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
button, .button-link { display: inline-block; min-height: 40px; padding: 8px 13px; border: 1px solid #cdd3dc; border-radius: 4px; background: #fff; color: #2955c3; cursor: pointer; text-decoration: none; }
button:hover, .button-link:hover { border-color: #2955c3; background: #f6f8fc; }
.btn-primary { background: #2955c3; border-color: #2955c3; color: #fff; }
.btn-primary:hover { background: #1d3f94; color: #fff; }
button:disabled { cursor: not-allowed; opacity: .6; }
.result-panel { margin-top: 20px; padding: 20px; background: #f6f8fa; border: 1px solid #e0e4ea; border-radius: 6px; }
.result-value { display: block; font-size: 28px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.result-label { color: #596271; font-size: 13px; }
.result-panel p { margin: 8px 0 0; }
.tool-error { margin: 12px 0; padding: 10px 12px; color: #9b2929; background: #fff4f3; border: 1px solid #edcfcc; border-radius: 4px; }
.tool-note { margin: 16px 0; padding: 12px 14px; background: #f6f8fa; border: 1px solid #e0e4ea; border-radius: 4px; color: #4a5360; font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e0e4ea; vertical-align: top; }
th { font-weight: 600; }
.tool-guide { margin-top: 24px; padding: 20px; border: 1px solid #e0e4ea; border-radius: 8px; background: #fff; }
.tool-guide h2 { margin: 0 0 8px; font-size: 18px; }
.tool-guide p { margin: 0 0 12px; }
[hidden] { display: none !important; }
html.embedded body { background: transparent; }
html.embedded .page-only { display: none !important; }
html.embedded .tool-main { max-width: 740px; padding: 0; }
html.embedded .tool-title { font-size: 18px; }
@media (max-width: 560px) {
    .tool-main { padding: 20px 12px 32px; }
    .tool-container { padding: 20px 16px; }
    .form-row, .tool-columns { grid-template-columns: 1fr; gap: 0; }
    .tool-title { font-size: 20px; }
    .tool-page-header { padding: 16px; }
    .tool-page-header > div { align-items: flex-start; }
    .tool-page-header nav { gap: 8px 12px; justify-content: flex-end; }
    .result-value { font-size: 25px; }
}
