/* Page-scoped companion to site-light.css; never changes the global shell. */
.qv-materials { --calc-border: #e2e8f0; --calc-panel: #f1f4ff; --calc-accent: #ea4020; }
.qv-materials .section { padding-top: 145px; padding-bottom: 60px; }
.qv-materials .materials-heading { margin-bottom: 32px; }
.qv-materials h1 { color: #292929; font-size: 40px; font-weight: 700; margin: 12px 0; }
.qv-materials .materials-heading p { color: #555a64; max-width: 700px; }
.qv-materials .materials-kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.qv-materials .materials-back { font-size: 14px; }
.qv-materials .materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.qv-materials .material-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--calc-border); border-radius: 10px; background: white; box-shadow: 0 .375rem 1.5rem rgba(140,152,164,.125); }
.qv-materials .material-symbol { background: var(--calc-panel); color: #292929; font: 54px Georgia, serif; display: grid; place-items: center; min-height: 170px; }
.qv-materials .material-body { padding: 24px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.qv-materials .material-body h2 { font-size: 21px; }
.qv-materials .material-body p { margin-bottom: 24px; }
.qv-materials .material-body .px-btn { margin-top: auto; padding: 0 22px; text-align: center; }
.qv-calculator .materials-heading { text-align: center; }
.qv-calculator .materials-heading p { margin: 0 auto 18px; }
.qv-calculator .calculator-workspace { display: flex; justify-content: center; min-width: 0; }
.qv-calculator .calculator-stage { width: 100%; max-width: 440px; min-width: 0; }
.qv-calculator .calculator { padding: 24px; background: #fff; border: 1px solid var(--calc-border); border-radius: 10px; box-shadow: 0 12px 30px rgba(140,152,164,.17); color: #292929; width: 100%; }
.qv-calculator button { font-family: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.qv-calculator button:focus-visible, .qv-calculator a:focus-visible { outline: 3px solid var(--calc-accent); outline-offset: 3px; }
.qv-calculator [hidden] { display: none !important; }
.qv-calculator .hardware-brand { margin: 0 0 20px; }
.qv-calculator .hardware-brand strong { font-size: 14px; letter-spacing: 1px; font-weight: 700; }
.qv-calculator .display-bezel { padding: 8px; border-radius: 8px; background: #e8ecf7; }
.qv-calculator .lcd { background: #f7f6ff; border: 1px solid #dce1ee; border-radius: 5px; color: #292929; padding: 10px; min-height: 170px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.qv-calculator .lcd-status { display: flex; gap: 12px; font: 11px/1.5 monospace; }
.qv-calculator .lcd-status > span { opacity: .3; }
.qv-calculator .lcd-status .status-active { opacity: 1; }
.qv-calculator .status-right { margin-left: auto; }
.qv-calculator .expression-scroll { min-height: 60px; max-height: 190px; overflow: auto; display: flex; align-items: center; scrollbar-width: thin; }
.qv-calculator math-field { width: 100%; min-width: 0; background: transparent; color: inherit; border: 0; padding: 4px 0; font-size: 27px; --caret-color: #ea4020; --selection-background-color: #fcd9d2; --placeholder-color: #697280; --smart-fence-color: #697280; --hue: 10; }
.qv-calculator math-field::part(virtual-keyboard-toggle), .qv-calculator math-field::part(menu-toggle) { display: none; }
.qv-calculator math-field::part(container) { border: 0; padding: 0; background: transparent; }
.qv-calculator math-field:focus-within { outline: 2px solid #ea402040; outline-offset: 1px; }
.qv-calculator math-field::part(content) { padding: 3px 1px; }
.qv-calculator .expression-scroll:focus-within { box-shadow: 0 2px 0 #ea402040; }
.qv-calculator .result-line { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 6px 0; }
.qv-calculator .result-sign { opacity: .55; font-size: 20px; }
.qv-calculator #result { font-size: 30px; line-height: 1.3; min-height: 40px; max-width: calc(100% - 24px); overflow: auto; scrollbar-width: thin; margin-left: auto; text-align: right; padding: 3px 0; }
.qv-calculator #result.error { font-size: 19px; font-weight: 600; color: #b42b15; }
.qv-calculator .lcd-bottom { display: flex; justify-content: space-between; gap: 6px; font-size: 9px; line-height: 1.5; border-top: 1px solid var(--calc-border); padding-top: 7px; margin-top: auto; color: #555a64; }
.qv-calculator #result-kind { white-space: nowrap; font-size: 8px; font-weight: 600; }
.qv-calculator [aria-busy="true"] .lcd-bottom { color: #ba351b; }
.qv-calculator .control-row { display: grid; grid-template-columns: 1fr 1fr 100px 1fr 1fr; align-items: center; gap: 8px; margin: 18px 0 16px; }
.qv-calculator .round-key-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.qv-calculator .round-key-wrap > span { font-size: 9px; position: relative; }
.qv-calculator .round-key-wrap em { position: absolute; top: -11px; left: 0; font: 7px/1 inherit; font-style: normal; color: #966100; }
.qv-calculator .shift-label { color: #966100; }
.qv-calculator .alpha-label, .qv-calculator .alpha-letter { color: #b23827; }
.qv-calculator .round-key { width: 38px; height: 28px; border: 1px solid #cdd4e2; border-radius: 14px; background: #e8ecf7; }
.qv-calculator .shift-key { background: #fff2ce; border-color: #e4c277; }
.qv-calculator .alpha-key { background: #fce5de; border-color: #e6b5a7; }
.qv-calculator .replay { width: 100px; height: 76px; display: grid; grid-template-columns: 28px 42px 28px; grid-template-rows: 26px 22px 26px; background: var(--calc-panel); border: 1px solid #d5dcea; border-radius: 24px; }
.qv-calculator .replay button { color: #555a64; background: none; border: 0; padding: 0; font-size: 11px; }
.qv-calculator .replay span { font-size: 7px; grid-row: 2; grid-column: 2; display: grid; place-items: center; }
.qv-calculator .nav-up { grid-row: 1; grid-column: 2; }
.qv-calculator .nav-left { grid-row: 2; grid-column: 1; }
.qv-calculator .nav-right { grid-row: 2; grid-column: 3; }
.qv-calculator .nav-down { grid-row: 3; grid-column: 2; }
.qv-calculator .function-pad { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.qv-calculator .key-wrap { min-width: 0; position: relative; padding-top: 13px; }
.qv-calculator .key-secondary { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; font-size: 8px; line-height: 12px; color: #966100; white-space: nowrap; }
.qv-calculator .alpha-letter { margin-left: auto; margin-right: 2px; }
.qv-calculator .key { display: flex; justify-content: center; align-items: center; width: 100%; height: 37px; padding: 0; border: 1px solid #d5dcea; border-radius: 5px; background: var(--calc-panel); color: #292929; font-size: 16px; font-weight: 500; box-shadow: 0 2px 0 #d5dcea; user-select: none; }
.qv-calculator .key:hover, .qv-calculator .round-key:hover { filter: brightness(.97); }
.qv-calculator .key sup { font-size: .65em; position: relative; top: -.23em; }
.qv-calculator .key sub { font-size: .65em; position: relative; bottom: -.25em; }
.qv-calculator .key-small { font-size: 12px; }
.qv-calculator .frac-icon { display: flex; flex-direction: column; font-size: 10px; line-height: 11px; }
.qv-calculator .frac-icon span:first-child { border-bottom: 1px solid; padding-bottom: 2px; }
.qv-calculator .number-pad { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.qv-calculator .number-pad .key { height: 45px; font-size: 24px; background: #fff; }
.qv-calculator .number-pad .key-small { font-size: 15px; }
.qv-calculator .number-pad .clear-key { background: #fff0eb; color: #bb351c; border-color: #efcfc5; font-size: 17px; }
.qv-calculator .number-pad .equals-key { background: var(--calc-accent); color: white; border-color: var(--calc-accent); box-shadow: 0 2px 0 #c53418; }
.qv-calculator .key:active, .qv-calculator .key.pressed, .qv-calculator .round-key:active { transform: translateY(2px); box-shadow: none; }
.qv-calculator .shift-on .shift-key, .qv-calculator .alpha-on .alpha-key { outline: 2px solid var(--calc-accent); outline-offset: 2px; }
.qv-calculator .shift-on .key-secondary { color: #8a5700; font-weight: 700; }
.qv-calculator .alpha-on .alpha-letter { font-weight: 700; }
.qv-calculator .hardware-footer { display: flex; justify-content: space-between; padding-top: 20px; color: #697280; font-size: 7px; letter-spacing: 1.5px; }
.qv-calculator .under-calculator { font-size: 12px; text-align: center; margin: 22px 0; color: #555a64; }
.qv-calculator .under-calculator span { margin: 0 4px; }
.qv-calculator .calculator-privacy { max-width: 540px; text-align: center; font-size: 13px; color: #555a64; margin: 0 auto; }
.qv-calculator .screen-overlay { position: absolute; inset: 0; padding: 20px 14px; background: #f7f6ff; z-index: 2; }
.qv-calculator .screen-overlay h3 { font-size: 16px; margin: 0 0 14px; }
.qv-calculator .screen-overlay p { font-size: 11px; line-height: 1.5; margin: 7px 0; }
.qv-calculator .angle-options { display: flex; gap: 6px; }
.qv-calculator .angle-options button { padding: 7px; border: 1px solid #d5dcea; border-radius: 5px; background: white; font-size: 12px; }
.qv-calculator .angle-options button[aria-pressed="true"] { background: var(--calc-accent); color: white; border-color: var(--calc-accent); }
.qv-calculator .overlay-close { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 20px; }
.qv-calculator .powered-off .lcd > :not(.screen-overlay) { visibility: hidden; }
.qv-calculator .toast { position: fixed; z-index: 1100; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); padding: 12px 20px; border-radius: 8px; background: #292929; color: white; font-size: 13px; opacity: 0; pointer-events: none; }
.qv-calculator .toast.visible { opacity: 1; }
.qv-calculator dialog { width: min(730px, calc(100% - 28px)); max-height: 85vh; overflow: auto; border: 1px solid var(--calc-border); border-radius: 10px; background: white; color: #292929; padding: 34px; }
.qv-calculator dialog::backdrop { background: #29292980; }
.qv-calculator .dialog-close { position: absolute; top: 8px; right: 16px; border: 0; background: none; font-size: 28px; }
.qv-calculator dialog h2 { font-size: 27px; margin: 14px 0; }
.qv-calculator dialog h3 { font-size: 16px; }
.qv-calculator dialog p { font-size: 14px; color: #555a64; }
.qv-calculator .eyebrow { font-size: 11px; letter-spacing: 1px; }
.qv-calculator .help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0; }
.qv-calculator kbd, .qv-calculator .inline-key { color: #292929; background: var(--calc-panel); border-radius: 3px; padding: 2px 4px; font-size: 12px; }
@media (max-width: 991px) {
  .qv-materials .section { padding-top: 115px; }
  .qv-materials .materials-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 567px) {
  .qv-materials h1 { font-size: 30px; }
  .qv-materials .materials-grid { grid-template-columns: 1fr; }
  .qv-calculator .calculator { padding: 18px 14px; }
  .qv-calculator .control-row { gap: 5px; }
  .qv-calculator .function-pad, .qv-calculator .number-pad { column-gap: 6px; }
  .qv-calculator .key { font-size: 14px; }
  .qv-calculator .key-small { font-size: 10px; }
  .qv-calculator .help-grid { grid-template-columns: 1fr; }
  .qv-calculator dialog { padding: 30px 20px; }
}
