.gcd-page{padding-top:1rem}.gcd-page>nav{margin-bottom:.75rem}.gcd-page>section[aria-labelledby=tool-title]{padding-bottom:1.25rem}.gcd-page #tool-title+p{margin-top:.5rem;line-height:1.5}.gcd-layout,.gcd-form,.gcd-fields-area,.gcd-field,.gcd-result,.gcd-solution{min-width:0}.gcd-form{display:grid;gap:1rem}.gcd-count{min-width:0;border:0;margin:0;padding:0}.gcd-count legend,.gcd-field>label{font-size:.875rem;line-height:1.25rem;font-weight:600}.gcd-count legend{margin-bottom:.5rem}.gcd-count-options{display:flex;gap:.5rem}.gcd-count-options label{cursor:pointer}.gcd-count-options span{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border:1px solid var(--border);border-radius:.5rem;background:var(--surface-muted);font-size:.875rem;font-weight:600}.gcd-count-options input:checked+span{border-color:var(--primary);background:var(--primary-soft)}.gcd-count-options label:hover span{border-color:var(--primary);background:var(--surface-hover)}.gcd-count-options label:active span{background:var(--primary-soft)}.gcd-count-options input:focus-visible+span{outline:2px solid var(--focus);outline-offset:4px}.gcd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem}.gcd-field{display:flex;flex-direction:column;gap:.5rem;max-width:20.3125rem}.gcd-field .field-input{border-radius:.5rem;font-size:1rem;font-variant-numeric:tabular-nums}.gcd-hint{margin-top:.625rem;font-size:.75rem;line-height:1.25rem;color:var(--text-muted)}.gcd-error{color:var(--text-primary);font-size:.875rem;line-height:1.5rem;overflow-wrap:anywhere}.gcd-calculate,.gcd-copy{width:100%;min-height:2.75rem;border-radius:.5rem}.gcd-body{display:grid;gap:1.25rem;border-top:1px solid var(--border);margin-top:1.25rem;padding-top:1.25rem}.gcd-result{grid-row:1}.gcd-section-title{font-size:1.25rem;line-height:1.75rem;font-weight:700}.gcd-result-title{font-size:.875rem;line-height:1.5rem;font-weight:700;overflow-wrap:anywhere}.gcd-previous{margin-top:.5rem;color:var(--text-muted);font-size:.875rem;line-height:1.5rem}.gcd-previous:empty{display:none}.gcd-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem;margin-top:1rem}.gcd-answer{min-width:0}.gcd-answer+.gcd-answer{border-left:1px solid var(--border);padding-left:.875rem}.gcd-answer h3{font-size:.875rem;line-height:1.25rem;font-weight:600}.gcd-answer-value{font-size:2.5rem;font-weight:800;letter-spacing:-.035em;line-height:1.25;font-variant-numeric:tabular-nums;margin-top:.375rem;overflow-wrap:anywhere}.gcd-answers[data-long=true] .gcd-answer-value{font-size:1.5rem;letter-spacing:-.015em}.gcd-answer-label{margin-top:.375rem;color:var(--text-muted);font-size:.75rem;line-height:1.25rem}.gcd-copy-area{min-width:0;margin-top:1.25rem}.gcd-icon{width:1.25rem;height:1.25rem;flex-shrink:0}.gcd-manual-copy{margin-top:.75rem;font-size:.875rem;line-height:1.5rem;overflow-wrap:anywhere}.gcd-manual-copy textarea{margin-top:.75rem}.gcd-solution{border-top:1px solid var(--border);padding-top:1.25rem}.gcd-solution-context{margin-top:.75rem;color:var(--text-muted);font-size:.875rem;line-height:1.5rem;overflow-wrap:anywhere}.gcd-solution-steps{display:grid;gap:1.5rem;margin-top:1rem}.gcd-solution-steps>li{display:grid;grid-template-columns:2rem minmax(0,1fr);align-items:start;gap:.75rem}.gcd-solution-steps>li>div{min-width:0}.gcd-step-number{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-size:.875rem;font-weight:600}.gcd-solution-steps h3{font-size:.875rem;line-height:1.5rem;font-weight:700;padding-top:.25rem}.gcd-equations{display:grid;gap:.5rem;margin-top:.75rem}.gcd-equation{font-size:1rem;line-height:1.5rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.gcd-equation sup{position:relative;top:-.4em;vertical-align:baseline;font-size:.7em}.gcd-explanation{color:var(--text-muted);font-size:.875rem;line-height:1.5rem;margin-top:.5rem;overflow-wrap:anywhere}.gcd-explanation strong{color:var(--text-primary);font-weight:600}.gcd-conclusion{margin-top:.75rem;font-size:.875rem;line-height:1.5rem;font-weight:600;overflow-wrap:anywhere}.gcd-euclid{margin-top:.75rem}.gcd-euclid+.gcd-euclid,.gcd-lcm-step+.gcd-lcm-step{border-top:1px solid var(--border);padding-top:.75rem}.gcd-empty{min-height:6rem;margin-top:1rem;color:var(--text-muted);font-size:.875rem;line-height:1.5rem}.gcd-guide{margin-top:2rem;display:grid;gap:1.5rem}.gcd-guide>section{min-width:0;padding:1rem;border:1px solid var(--border);border-radius:.75rem;background:var(--surface)}.gcd-guide h2{font-size:1.25rem;line-height:1.75rem;font-weight:700}.gcd-guide h3,.gcd-methods h3,.gcd-properties h3{font-size:.875rem;line-height:1.5rem;font-weight:700}.gcd-guide p{font-size:.875rem;line-height:1.5rem;color:var(--text-muted);margin-top:.5rem}.gcd-instruction{display:grid;gap:.875rem;margin-top:1rem}.gcd-instruction>li{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.625rem;font-size:.875rem;line-height:1.5rem}.gcd-instruction-number{font-weight:600;color:var(--primary)}.gcd-definitions{display:grid;gap:1rem;margin-top:1rem}.gcd-methods{margin-top:2rem}.gcd-methods-grid{display:grid;gap:1.5rem;margin-top:1rem}.gcd-methods-grid>div{min-width:0}.gcd-methods p{margin-top:.75rem;overflow-wrap:anywhere}.gcd-properties{margin-top:1.5rem;display:grid;gap:1rem}.gcd-properties>div{min-width:0}.gcd-properties p{overflow-wrap:anywhere}.gcd-page #faq{margin-top:2.5rem;padding-top:2rem}@media(max-width:39.999rem){.gcd-fields[data-long=true]{grid-template-columns:minmax(0,1fr)}}@media(max-width:63.999rem){.gcd-form{gap:.75rem}.gcd-body{gap:1rem;padding-top:1rem}.gcd-solution{padding-top:1rem}.gcd-answers[data-long=true]{grid-template-columns:minmax(0,1fr)}.gcd-answers[data-long=true] .gcd-answer+.gcd-answer{border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:.875rem}}@media(min-width:48rem){.gcd-page{padding-top:3rem}.gcd-page>nav{margin-bottom:1.25rem}.gcd-page>section[aria-labelledby=tool-title]{padding-bottom:2rem}.gcd-fields{grid-template-columns:repeat(2,minmax(0,20.3125rem))}.gcd-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.gcd-guide>section{padding:1.25rem}.gcd-methods-grid,.gcd-properties{grid-template-columns:repeat(2,minmax(0,1fr))}.gcd-equation{font-size:1.125rem;line-height:1.875rem}}@media(min-width:64rem){.gcd-form{grid-template-columns:auto minmax(0,1fr) auto;gap:1.5rem;align-items:start}.gcd-calculate{margin-top:1.75rem;width:auto;min-width:9rem}.gcd-body{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:2rem;margin-top:1.5rem;padding-top:1.5rem}.gcd-solution{grid-column:1;grid-row:1;border:0;padding-top:0}.gcd-result{grid-column:2;grid-row:1;border-left:1px solid var(--border);padding-left:2rem}.gcd-result-title{font-size:1rem;line-height:1.5rem}.gcd-answers{grid-template-columns:minmax(0,1fr);gap:1.5rem;margin-top:1.5rem}.gcd-answer+.gcd-answer{border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:1.5rem}.gcd-answer-value{font-size:3.5rem}.gcd-answers[data-long=true] .gcd-answer-value{font-size:1.75rem}.gcd-answer-label{font-size:.875rem;line-height:1.5rem}.gcd-copy-area{margin-top:1.5rem}.gcd-solution-steps{margin-top:1.25rem}.gcd-solution-steps>li{grid-template-columns:2.5rem minmax(0,1fr);gap:1rem}.gcd-step-number{width:2.5rem;height:2.5rem}.gcd-solution-steps h3{padding-top:.5rem}}
