.sqrt-page { background: var(--paper); }
.sqrt-hero { position: relative; overflow: hidden; padding: 27px 20px 86px; background: radial-gradient(circle at 7% 13%, rgba(210,180,222,.35), transparent 31%), radial-gradient(circle at 95% 7%, rgba(155,89,182,.2), transparent 28%), linear-gradient(150deg, #fff 0%, #f4eef8 60%, #fff 100%); }
.sqrt-hero::after { content: ''; width: 470px; height: 470px; position: absolute; right: -245px; top: 150px; border: 1px solid rgba(123,47,190,.11); border-radius: 50%; box-shadow: 0 0 0 28px rgba(123,47,190,.035), 0 0 0 78px rgba(123,47,190,.02); pointer-events: none; }
.sqrt-hero-inner { width: min(1160px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.sqrt-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #9a8a9f; font-size: 12px; }
.sqrt-breadcrumbs a { color: var(--purple); font-weight: 750; }
.sqrt-eyebrow { width: max-content; margin: 55px auto 0; padding: 7px 13px 7px 7px; display: flex; align-items: center; gap: 9px; border: 1px solid #e9ddf4; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.sqrt-eyebrow-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #6e24b0, #9b59b6); color: #fff2bf; font-family: Georgia, serif; font-size: 21px; box-shadow: 0 7px 15px rgba(86,31,126,.18); }
.sqrt-hero h1 { max-width: 960px; margin: 16px auto 0; color: var(--ink); font-family: Georgia, serif; font-size: clamp(42px, 6vw, 76px); line-height: .97; letter-spacing: -.067em; text-align: center; }
.sqrt-calculator-panel { width: min(1160px, 100%); margin: 32px auto 0; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); overflow: hidden; border: 1px solid rgba(123,47,190,.15); border-radius: 29px; background: #fff; box-shadow: 0 27px 70px rgba(60,26,83,.16), inset 0 1px #fff; text-align: left; }
.sqrt-input-side { min-width: 0; padding: 31px 35px 27px; }
.sqrt-panel-topline, .sqrt-result-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sqrt-status, .sqrt-live { display: inline-flex; align-items: center; gap: 7px; color: #8b7e91; font-size: 11px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.sqrt-status i, .sqrt-live i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #f0d277; box-shadow: 0 0 0 4px rgba(240,210,119,.16); }
.sqrt-form-heading { margin-top: 25px; display: grid; grid-template-columns: 59px minmax(0,1fr); gap: 16px; align-items: center; }
.sqrt-form-icon { width: 59px; height: 59px; display: grid; place-items: center; border: 1px solid #d2b4de; border-radius: 18px; background: linear-gradient(145deg, #6e24b0, #9b59b6); color: #fff2bf; font-family: Georgia, serif; font-size: 37px; box-shadow: 0 10px 24px rgba(86,31,126,.2); transform: rotate(-3deg); }
.sqrt-form-heading h2 { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: -.04em; }
.sqrt-form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.42; }
.sqrt-number-field { margin-top: 24px; padding: 17px; display: block; border: 1px solid #e6d9ed; border-radius: 19px; background: linear-gradient(120deg, #f9f5fb, #fff); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.sqrt-number-field:focus-within { border-color: #b78cca; background: #fff; box-shadow: 0 0 0 4px rgba(123,47,190,.08); }
.sqrt-field-label { display: flex; align-items: center; gap: 9px; color: #5b4b66; font-size: 14px; font-weight: 800; }
.sqrt-field-label i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #eee4f4; color: var(--purple); font-family: Georgia, serif; font-size: 21px; font-style: normal; }
.sqrt-number-input { margin-top: 14px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; border: 1px solid #e2d5e9; border-radius: 14px; background: #fff; overflow: hidden; }
.sqrt-number-input > span { display: grid; place-items: center; color: var(--purple-dark); font-family: Georgia, serif; font-size: 31px; }
.sqrt-number-input input { min-width: 0; width: 100%; height: 65px; padding: 0 14px 0 5px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 31px; font-weight: 780; letter-spacing: -.045em; }
.sqrt-number-input input::placeholder { color: #b8a9bf; }
.sqrt-field-hint { margin: 11px 1px 0; color: #97899e; font-size: 12px; line-height: 1.45; }
.sqrt-input-note { margin-top: 16px; padding: 12px 13px; display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 10px; align-items: center; border-radius: 14px; background: #f3ecf7; }
.sqrt-input-note > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #e5d5ec; color: var(--purple-dark); font-size: 12px; font-weight: 900; }
.sqrt-input-note p { margin: 0; color: #6b5b74; font-size: 13px; line-height: 1.43; }
.sqrt-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.sqrt-submit, .sqrt-reset { min-height: 49px; padding: 0 18px; border-radius: 13px; cursor: pointer; font-size: 14px; font-weight: 850; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sqrt-submit { flex: 1; border: 1px solid var(--purple); background: var(--purple); color: #fff; box-shadow: 0 11px 22px rgba(123,47,190,.22); }
.sqrt-submit:hover { border-color: var(--purple-dark); background: var(--purple-dark); transform: translateY(-1px); }
.sqrt-submit:focus-visible, .sqrt-reset:focus-visible { outline: 3px solid rgba(240,210,119,.8); outline-offset: 2px; }
.sqrt-submit span { margin-right: 7px; font-family: Georgia, serif; font-size: 19px; }
.sqrt-reset { border: 1px solid #e2d5e9; background: #fff; color: #786a80; }
.sqrt-reset:hover { background: #f5eff8; color: var(--purple-dark); }
.sqrt-live-note { margin: 13px 0 0; display: flex; align-items: center; gap: 8px; color: #97899e; font-size: 12px; line-height: 1.35; }
.sqrt-live-note > span { width: 18px; height: 18px; display: inline-block; border-radius: 50%; background: #eee4f4; box-shadow: inset 0 0 0 5px #f8f4fa; }
.sqrt-result-side { min-width: 0; min-height: 606px; padding: 31px 32px 28px; position: relative; overflow: hidden; border-left: 1px solid #eadff0; background: radial-gradient(circle at 92% 12%, rgba(210,180,222,.24), transparent 27%), radial-gradient(circle at 12% 93%, rgba(123,47,190,.13), transparent 31%), linear-gradient(145deg, #fffdfb 0%, #f7eff9 57%, #eee3f5 100%); color: var(--ink); }
.sqrt-result-side::before { content: ''; width: 260px; height: 260px; position: absolute; top: -133px; right: -97px; border: 1px solid rgba(123,47,190,.16); border-radius: 50%; box-shadow: 0 0 0 25px rgba(123,47,190,.04), 0 0 0 57px rgba(123,47,190,.022); }
.sqrt-result-topline { position: relative; z-index: 1; color: #765b82; }
.sqrt-live { color: #8a7892; }
.sqrt-result-art { width: 151px; height: 151px; margin: 25px auto 0; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 42px; background: rgba(210,180,222,.2); box-shadow: 0 18px 32px rgba(88,52,105,.12), inset 0 1px rgba(255,255,255,.65); }
.sqrt-result-art img { width: 138px; height: 138px; object-fit: contain; filter: drop-shadow(0 15px 13px rgba(71,35,88,.2)); }
.sqrt-result-main { margin-top: 22px; position: relative; z-index: 1; text-align: center; animation: sqrtResultIn .34s ease both; }
.sqrt-result-main > span { display: block; color: #8a6e95; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sqrt-equation { margin-top: 13px; color: var(--purple-dark); font-family: Georgia, serif; font-size: 21px; line-height: 1; }
.sqrt-result-main strong { display: block; margin-top: 6px; color: #302037; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.04; letter-spacing: -.06em; overflow-wrap: anywhere; }
.sqrt-result-main p { max-width: 495px; margin: 10px auto 0; color: #776b7d; font-size: 14px; line-height: 1.5; }
.sqrt-result-side.is-negative .sqrt-result-main strong { color: #7b2fbe; font-size: clamp(29px, 3.5vw, 43px); }
.sqrt-result-side.is-invalid .sqrt-result-main strong { color: #a46f20; font-size: 35px; }
.sqrt-result-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; position: relative; z-index: 1; }
.sqrt-result-grid article { min-width: 0; padding: 12px 13px; border: 1px solid rgba(123,47,190,.16); border-radius: 13px; background: rgba(255,255,255,.68); box-shadow: 0 8px 18px rgba(55,27,70,.045); }
.sqrt-result-grid span, .sqrt-solution-card > span { display: block; color: #8c7395; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.sqrt-result-grid strong { display: block; margin-top: 5px; color: #302037; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.sqrt-solution-card { margin-top: 13px; padding: 14px 15px; border: 1px solid rgba(123,47,190,.16); border-radius: 14px; background: rgba(255,255,255,.58); box-shadow: 0 8px 18px rgba(55,27,70,.04); position: relative; z-index: 1; }
.sqrt-solution-card ol { margin: 9px 0 0; padding-left: 19px; color: #66556d; font-size: 13px; line-height: 1.48; }
.sqrt-solution-card li + li { margin-top: 5px; }
.sqrt-result-side.is-negative .sqrt-solution-card { border-color: rgba(190,148,56,.28); background: rgba(240,210,119,.15); }
@keyframes sqrtResultIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.sqrt-hero-footnote { margin: 19px auto 0; color: #8e8097; font-size: 13px; text-align: center; }
.sqrt-content-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 83px 0; }
.sqrt-section-tint { width: 100%; padding-inline: max(20px, calc(50% - 560px)); border-top: 1px solid #e8daef; border-bottom: 1px solid #e8daef; background: #f4eef8; }
.sqrt-section-heading { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 17px; }
.sqrt-section-heading > div { min-width: 0; }
.sqrt-section-heading p { margin: 0 0 7px; color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sqrt-section-heading h2 { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: clamp(33px, 4.3vw, 52px); line-height: .99; letter-spacing: -.06em; }
.sqrt-glyph { width: 57px; height: 57px; flex: 0 0 57px; display: grid; place-items: center; border: 1px solid #d2b4de; border-radius: 17px; background: linear-gradient(145deg, #6e24b0, #9b59b6); color: #fff2bf; box-shadow: 0 12px 28px rgba(86,31,126,.16); font-family: Georgia, serif; font-size: 29px; }
.sqrt-glyph-steps { display: flex; align-items: center; justify-content: center; gap: 3px; font-family: Segoe UI, Arial, sans-serif; font-size: 12px; }
.sqrt-glyph-steps i { width: 16px; height: 23px; display: grid; place-items: center; border-radius: 5px; background: rgba(255,255,255,.19); font-style: normal; }
.sqrt-glyph-formula { font-size: 36px; }
.sqrt-glyph-example { font-size: 20px; }
.sqrt-glyph-faq { font-size: 28px; }
.sqrt-steps-grid, .sqrt-method-grid { max-width: 1120px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.sqrt-steps-grid article, .sqrt-method-grid article { min-width: 0; padding: 24px; border: 1px solid #e1d4e9; border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(55,27,70,.055); }
.sqrt-steps-grid article > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: #eee4f4; color: var(--purple); font-size: 12px; font-weight: 900; }
.sqrt-steps-grid h3, .sqrt-method-grid h3 { margin: 17px 0 9px; color: var(--ink); font-size: 20px; letter-spacing: -.03em; }
.sqrt-steps-grid p, .sqrt-method-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }
.sqrt-note-card, .sqrt-boundary-card, .sqrt-caution-card { max-width: 1120px; margin: 17px auto 0; padding: 20px 23px; display: grid; grid-template-columns: 39px minmax(0,1fr); gap: 14px; align-items: center; border: 1px solid #e1d4e9; border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(55,27,70,.05); }
.sqrt-note-mark, .sqrt-caution-card > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #eee4f4; color: var(--purple); font-size: 18px; font-weight: 900; }
.sqrt-note-card p, .sqrt-boundary-card p, .sqrt-caution-card p { margin: 0; color: #63586b; font-size: 15px; line-height: 1.58; }
.sqrt-copy-grid { max-width: 1120px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 25px; align-items: stretch; }
.sqrt-copy-grid > div:first-child { padding: 4px 0; }
.sqrt-copy-grid p { margin: 0; color: #63586b; font-size: 17px; line-height: 1.68; }
.sqrt-copy-grid p + p { margin-top: 15px; }
.sqrt-formula-card { padding: 27px 23px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #d9c4e3; border-radius: 20px; background: linear-gradient(145deg, #fff, #f7effa); box-shadow: 0 14px 32px rgba(55,27,70,.07); }
.sqrt-formula-card span, .sqrt-method-number { color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sqrt-formula-card strong { margin-top: 17px; color: var(--purple-dark); font-family: Georgia, serif; font-size: 39px; letter-spacing: -.06em; }
.sqrt-formula-card p { margin-top: 7px; color: #806f89; font-size: 14px; }
.sqrt-boundary-card { border-color: #dbc7e4; background: #fbf7fd; }
.sqrt-boundary-card > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #eadcf1; color: var(--purple-dark); font-family: Georgia, serif; font-size: 24px; }
.sqrt-boundary-card b { color: var(--purple-dark); font-size: 15px; }
.sqrt-boundary-card p { margin-top: 3px; font-size: 14px; }
.sqrt-method-number { display: block; }
.sqrt-method-grid article { padding-top: 26px; }
.sqrt-method-grid h3 { margin-top: 15px; }
.sqrt-example-grid { max-width: 1120px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.sqrt-example-primary, .sqrt-example-secondary { min-height: 188px; padding: 27px; display: flex; flex-direction: column; justify-content: center; border-radius: 20px; }
.sqrt-example-primary { background: linear-gradient(140deg, #2d173b, #692b89); color: #fff; box-shadow: 0 15px 35px rgba(55,27,70,.14); }
.sqrt-example-secondary { border: 1px solid #e1d4e9; background: #fff; box-shadow: 0 12px 30px rgba(55,27,70,.055); }
.sqrt-example-primary span, .sqrt-example-secondary span { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sqrt-example-primary span { color: #d9b9e7; }
.sqrt-example-secondary span { color: var(--purple); }
.sqrt-example-primary strong, .sqrt-example-secondary strong { margin-top: 17px; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.sqrt-example-primary strong { color: #fff; }
.sqrt-example-secondary strong { color: var(--purple-dark); }
.sqrt-example-primary p, .sqrt-example-secondary p { margin: 11px 0 0; font-size: 14px; line-height: 1.5; }
.sqrt-example-primary p { color: #eadff0; }
.sqrt-example-secondary p { color: #72637c; }
.sqrt-caution-card { border-color: #e7d9ed; background: #fdfbfe; }
.sqrt-caution-card > span { font-family: Georgia, serif; font-size: 18px; }
.sqrt-faq-section { padding-bottom: 90px; }
.sqrt-faq-grid { max-width: 1120px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.sqrt-faq-grid details { border: 1px solid #e1d4e9; border-radius: 15px; background: #fff; overflow: hidden; }
.sqrt-faq-grid summary { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #4b3b54; cursor: pointer; font-size: 16px; font-weight: 750; list-style: none; }
.sqrt-faq-grid summary::-webkit-details-marker { display: none; }
.sqrt-faq-grid summary span { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; background: #eee4f4; color: var(--purple); font-size: 20px; font-weight: 400; }
.sqrt-faq-grid details[open] summary span { transform: rotate(45deg); }
.sqrt-faq-grid details p { margin: 0; padding: 0 20px 20px; color: #6b6072; font-size: 15px; line-height: 1.6; }

/* Fast, reusable 3D icon for category cards and the home shortcut. */
.category-root-mark { width: 100%; height: 100%; display: block; border-radius: inherit; background: url('/square-root-icon.webp') center / 93% 93% no-repeat; filter: drop-shadow(0 8px 10px rgba(69,30,84,.22)); transform: scale(1.05); }
.category-tool-icon.tool-mark-root, .directory-tool-mark.tool-mark-root { overflow: visible; background: linear-gradient(145deg, #ead7f1, #c49bd6); }
.category-tool-icon.tool-mark-root .category-root-mark, .directory-tool-mark.tool-mark-root .category-root-mark { width: 114%; height: 114%; }
.home-study-shortcut { width: min(760px, 100%); margin: 18px auto 0; }
.home-study-shortcut > a { min-height: 76px; padding: 11px 17px 11px 11px; display: grid; grid-template-columns: 55px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid #e0cfe8; border-radius: 19px; background: linear-gradient(110deg, #fff, #f8f0fb); color: var(--ink); box-shadow: 0 12px 27px rgba(55,27,70,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-study-shortcut > a:hover { border-color: #c39ad2; box-shadow: 0 18px 35px rgba(55,27,70,.11); transform: translateY(-3px); }
.home-study-shortcut .category-root-mark { width: 55px; height: 55px; border-radius: 16px; background-color: #eadbf1; }
.home-study-shortcut small, .home-study-shortcut strong, .home-study-shortcut em { display: block; }
.home-study-shortcut small { color: #8c5ba1; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.home-study-shortcut strong { margin-top: 4px; color: #47304f; font-size: 15px; letter-spacing: -.025em; }
.home-study-shortcut em { margin-top: 3px; color: #9a8a9f; font-size: 11px; font-style: normal; }
.home-study-shortcut b { color: var(--purple); font-size: 21px; }

@media (max-width: 940px) { .sqrt-calculator-panel { grid-template-columns: 1fr; } .sqrt-result-side { min-height: 600px; } }
@media (max-width: 700px) { .sqrt-hero { padding: 22px 14px 65px; } .sqrt-eyebrow { margin-top: 43px; font-size: 9px; } .sqrt-hero h1 { font-size: clamp(40px, 10.8vw, 60px); } .sqrt-calculator-panel { margin-top: 25px; border-radius: 23px; } .sqrt-input-side { padding: 27px 20px 25px; } .sqrt-form-heading { grid-template-columns: 48px minmax(0,1fr); gap: 12px; } .sqrt-form-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 30px; } .sqrt-form-heading h2 { font-size: 21px; } .sqrt-form-heading p { font-size: 13px; } .sqrt-number-field { padding: 13px; } .sqrt-number-input { grid-template-columns: 35px minmax(0,1fr); } .sqrt-number-input > span { font-size: 26px; } .sqrt-number-input input { height: 57px; font-size: 26px; } .sqrt-input-note p { font-size: 12px; } .sqrt-actions { flex-direction: column; align-items: stretch; } .sqrt-submit, .sqrt-reset { width: 100%; } .sqrt-result-side { min-height: 584px; padding: 27px 20px 28px; } .sqrt-result-art { width: 130px; height: 130px; margin-top: 22px; border-radius: 36px; } .sqrt-result-art img { width: 120px; height: 120px; } .sqrt-result-main { margin-top: 19px; } .sqrt-equation { font-size: 19px; } .sqrt-result-main strong { font-size: 39px; } .sqrt-result-grid { grid-template-columns: 1fr; } .sqrt-content-section { width: min(100% - 28px, 1120px); padding: 64px 0; } .sqrt-section-tint { width: 100%; padding-inline: 14px; } .sqrt-section-heading { gap: 12px; } .sqrt-glyph { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; font-size: 23px; } .sqrt-glyph-formula { font-size: 30px; } .sqrt-section-heading h2 { font-size: clamp(30px, 8vw, 43px); } .sqrt-steps-grid, .sqrt-method-grid, .sqrt-faq-grid, .sqrt-example-grid, .sqrt-copy-grid { grid-template-columns: 1fr; } .sqrt-steps-grid article, .sqrt-method-grid article { padding: 22px; } .sqrt-note-card, .sqrt-boundary-card, .sqrt-caution-card { grid-template-columns: 1fr; padding: 21px; gap: 12px; } .sqrt-copy-grid p { font-size: 16px; } .sqrt-formula-card { min-height: 170px; } .sqrt-example-primary, .sqrt-example-secondary { min-height: 170px; padding: 23px; } .sqrt-faq-grid summary { font-size: 15px; } .home-study-shortcut > a { grid-template-columns: 47px minmax(0,1fr) auto; padding: 9px; gap: 9px; } .home-study-shortcut .category-root-mark { width: 47px; height: 47px; } .home-study-shortcut strong { font-size: 13px; } .home-study-shortcut em { font-size: 10px; } }
