/* Additive reading presentation. Native statements, math, editor metrics and actions stay intact. */
.ph-problem-hall{--p-ink:#293f58;--p-muted:#647c93;--p-line:#d5e0ec;--p-panel:#fff;--p-soft:#f4f7fb;--p-gold:#b48a44;--p-teal:#0b7b7f;color:var(--p-ink);isolation:isolate}.ph-problem-hall [hidden]{display:none!important}.ph-problem-hall .ph-p-summary{border:1px solid #c5ad80;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px #263b4d10}.ph-problem-hall:not(.is-in-contest) .ph-p-summary>.section__header{position:relative;padding:26px 28px 24px;background:radial-gradient(ellipse at 95% 15%,#327c7470,transparent 55%),linear-gradient(115deg,#182a40,#29485e);border-bottom:1px solid #d1b57c;overflow:hidden;isolation:isolate}.ph-problem-hall:not(.is-in-contest) .ph-p-summary>.section__header:before{content:"";position:absolute;inset:7px;border:1px solid #d9bf8a30;border-radius:8px;pointer-events:none;z-index:-1}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title{color:#ffe5ac;font-size:27px;line-height:1.65;padding-right:72px;text-wrap:pretty;overflow-wrap:anywhere}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title .star{color:#e8c98f;vertical-align:middle;transition:color .2s,transform .2s}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title .star:hover{color:#fff0c6;transform:scale(1.1)}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title a .accepted{color:#91e5bc}.ph-p-eyebrow{display:block;font-size:10px;letter-spacing:1.2px;font-weight:700;line-height:1.8}.ph-p-summary>.section__header>.ph-p-eyebrow{color:#e3c892;margin-bottom:11px}.ph-p-crest{position:absolute;right:23px;top:50%;transform:translateY(-50%);width:65px;height:65px;color:#e3c487;opacity:.7;pointer-events:none}.ph-p-crest svg{width:100%;height:100%}.ph-p-crest:before{content:"";position:absolute;inset:-5px;border:1px dashed #e7cc8d6b;border-radius:50%}.ph-atmosphere-motion .ph-p-crest:before{animation:ph-p-crest-turn 55s linear infinite}.ph-problem-hall:not(.is-in-contest) .ph-p-summary>.section__body{padding:14px 22px 11px;background:var(--p-panel)}.ph-problem-hall:not(.is-in-contest) .problem__tags{gap:7px;display:flex;flex-wrap:wrap;align-items:center;margin:0}.ph-problem-hall:not(.is-in-contest) .problem__tag-item{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;margin:0!important;border:1px solid var(--p-line);border-radius:6px;background:var(--p-soft);color:var(--p-muted);font-size:11px;line-height:1.65}.ph-problem-hall:not(.is-in-contest) .problem__tag-item.interactive{transition:background .18s,border-color .18s}.ph-problem-hall:not(.is-in-contest) .problem__tag-item.interactive:hover{background:#f6efdf;border-color:#c9ad75;color:#8a6530}.ph-problem-hall .ph-p-statement{position:relative;border:1px solid var(--p-line);border-top:3px solid #b69a63;border-radius:13px;overflow:visible;box-shadow:0 6px 20px #2c48630b}.ph-problem-hall .ph-p-statement .problem-content-container{border-radius:10px;overflow:clip}.ph-problem-hall .ph-p-statement .problem-content h2,.ph-problem-hall .ph-p-statement .problem-content h3{scroll-margin-top:128px}.ph-problem-hall:not(.is-in-contest) .ph-p-statement .problem-content h2{position:relative;color:var(--p-ink);padding-bottom:10px;border-bottom:1px solid #cfdbeb;border-image:linear-gradient(90deg,#a88a4e88,#72aeaa55,transparent) 1}.ph-problem-hall:not(.is-in-contest) .ph-p-statement .problem-content h3{color:#377278}.ph-problem-hall:not(.is-in-contest) .medium-3>.section,.ph-problem-hall:not(.is-in-contest) .medium-3>[data-sticky]>.section{border:1px solid var(--p-line);border-top:2px solid #c5a56c;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px #263b4d08}.ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link{transition:background .18s,color .18s,padding-left .18s}.ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link:hover{background:#f3eddf;color:#89652f;padding-left:24px}.ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link.active,.ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link--active{background:linear-gradient(90deg,#e8f2fa,#f8fafc);color:#236e91;border-left:3px solid #ac8b4b}.ph-p-routes{margin:0 0 20px;padding:19px 20px;border:1px solid #cddedc;border-radius:12px;background:linear-gradient(125deg,#f5faf9,#fffdfa);box-shadow:0 4px 15px #34665d07}.ph-p-routes>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ph-p-routes .ph-p-eyebrow{font-size:9px;letter-spacing:1px;color:#75918a}.ph-p-routes h2{font-size:17px!important;line-height:1.7;margin:0!important;color:var(--p-ink)}.ph-p-route-count{white-space:nowrap;font-size:10px;font-weight:700;color:#377b77;padding:5px 8px;background:#eaf5f1;border:1px solid #c0d9d1;border-radius:6px}.ph-p-route-list{display:grid;gap:9px}.ph-p-route{display:flex;gap:13px;border:1px solid #d9e5e1;border-radius:9px;background:var(--p-panel);padding:13px 14px;min-width:0;transition:border-color .2s,box-shadow .2s,transform .2s}.ph-p-route:hover{border-color:#c0a370;box-shadow:0 6px 15px #7b643012;transform:translateY(-1px)}.ph-p-route-glyph{width:35px;height:38px;flex-shrink:0;display:grid;place-items:center;border:1px solid #cbb98580;border-radius:8px;color:#aa8741;background:linear-gradient(135deg,#faf4e7,#f4f8fb)}.ph-p-route-glyph svg{width:23px;height:23px}.ph-p-route-content{min-width:0;flex:1}.ph-p-route h3{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px!important;line-height:1.8!important;margin:0 0 5px!important;color:var(--p-ink)}.ph-p-route h3>a{color:var(--p-ink);text-decoration:none;overflow-wrap:anywhere}.ph-p-route h3>a:hover{color:#ad7931}.ph-p-route ul{list-style:none;margin:0;padding:0}.ph-p-route li{margin:0;line-height:1.9}.ph-p-route li>a{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;text-decoration:none;color:var(--p-muted);font-size:11px;border-radius:4px;overflow-wrap:anywhere}.ph-p-route li>a:hover{color:var(--p-teal)}.ph-p-route-stage{font-size:9px;letter-spacing:.2px;padding:0 5px;border:1px solid #c9d9e5;background:#f3f7fb;border-radius:4px;color:#43738c;white-space:nowrap}.ph-p-route li small{margin-left:auto;font-size:10px;color:#3f7e79;white-space:nowrap}.ph-p-hidden{font-size:9px;font-weight:400;padding:1px 5px;color:#987438;border:1px solid #d7c6a1;border-radius:4px}.ph-p-route-more{margin-top:12px}.ph-p-route-more>.ph-p-disclosure-toggle{display:flex;justify-content:center;align-items:center;gap:8px;list-style:none;cursor:pointer;border:1px solid #ccded8;background:#f4f9f7;color:#377b76;border-radius:7px;padding:9px;font-size:11px;font-weight:700;transition:background .2s}.ph-p-route-more>.ph-p-disclosure-toggle::-webkit-details-marker{display:none}.ph-p-route-more>.ph-p-disclosure-toggle:hover{background:#eaf5f0}.ph-p-route-more.is-open>.ph-p-route-list{margin-top:10px}.ph-p-no-route{margin:0!important;font-size:11px;line-height:1.9;color:var(--p-muted);display:flex;gap:9px;align-items:center}.ph-p-no-route>span{color:#ad8d49}.ph-p-routes:has(>.ph-p-no-route){padding:12px 17px;background:var(--p-panel)}.ph-p-study-tools{display:flex;align-items:center;gap:10px;padding:11px 18px;border-bottom:1px solid var(--p-line);background:linear-gradient(90deg,#f4f8fc,#fbfaf6);border-radius:10px 10px 0 0;position:relative;z-index:5}.ph-p-study-tools button,.ph-p-study-tools summary{font:inherit;font-size:11px;color:var(--p-ink);cursor:pointer}.ph-p-study-tools svg{width:16px;height:16px;flex-shrink:0}.ph-p-outline{position:relative}.ph-p-outline>.ph-p-disclosure-toggle{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #cdddeb;border-radius:7px;list-style:none;background:var(--p-panel);font-weight:700;line-height:1.5}.ph-p-outline>.ph-p-disclosure-toggle::-webkit-details-marker{display:none}.ph-p-outline>.ph-p-disclosure-toggle b{font-weight:400;color:var(--p-muted)}.ph-p-outline>.ph-p-disclosure-toggle>span{font-size:9px;color:var(--p-muted)}.ph-p-outline>nav{position:absolute;top:calc(100% + 7px);left:0;z-index:10;background:var(--p-panel);border:1px solid #c4d4e3;border-top:2px solid #b2945e;border-radius:9px;min-width:240px;max-width:min(420px,70vw);width:max-content;max-height:50vh;overflow:auto;box-shadow:0 13px 30px #1c34452e;padding:7px;scrollbar-width:thin}.ph-p-outline>nav>button{display:block;width:100%;text-align:left;padding:8px 10px;line-height:1.7;border:0;border-radius:5px;background:transparent;white-space:normal;overflow-wrap:anywhere}.ph-p-outline>nav>button:hover{background:#eff5f9;color:#287f8a}.ph-p-outline>nav>button[data-level=h3]{padding-left:22px;font-size:10px;color:var(--p-muted)}.ph-p-focus-toggle{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #d6c4a0;border-radius:7px;background:#faf5e9;line-height:1.5}.ph-p-focus-toggle[aria-pressed=true]{border-color:#8ab8b1;background:#eaf6f2;color:#30726a}.ph-p-read-progress{margin-left:auto;min-width:95px;font-size:9px;color:var(--p-muted)}.ph-p-read-progress>div{margin-top:5px;overflow:hidden;background:#dbe5ec;border-radius:4px;height:3px}.ph-p-read-progress i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#b99b5c,#3a8a87);transform-origin:left;transform:scaleX(0)}.ph-problem-hall.ph-p-focus>.row>.medium-3{display:none}.ph-problem-hall.ph-p-focus>.row>.medium-9{width:100%;float:none}.ph-p-study-tools button:focus-visible,.ph-p-study-tools summary:focus-visible,.ph-p-routes a:focus-visible,.ph-p-routes summary:focus-visible{outline:2px solid #2b9ba0;outline-offset:3px}.ph-atmosphere-motion .ph-p-route-more.is-open>.ph-p-route-list{animation:ph-p-enter .22s ease-out}.ph-atmosphere-motion .ph-p-summary{animation:ph-p-enter .3s ease-out}@keyframes ph-p-crest-turn{to{transform:rotate(360deg)}}@keyframes ph-p-enter{from{opacity:.75;translate:0 4px}to{opacity:1;translate:0 0}}
html.page--problem_detail body .main{padding-top:28px!important}html.theme--dark .ph-problem-hall{--p-ink:#d8e5ef;--p-muted:#a6bbcd;--p-line:#3b5265;--p-panel:#1d2d3b;--p-soft:#24394a;--p-teal:#83c7c0}html.theme--dark .ph-p-routes{background:linear-gradient(125deg,#213e3d,#263444);border-color:#45645f}html.theme--dark .ph-p-route{border-color:#425a58}html.theme--dark .ph-p-route-glyph{background:linear-gradient(135deg,#374039,#273b48);color:#e4c38b}html.theme--dark .ph-p-route-count,html.theme--dark .ph-p-route-more>.ph-p-disclosure-toggle{background:#294f48;color:#b8e5d8;border-color:#4b7568}html.theme--dark .ph-p-route-stage{background:#2d4659;color:#c3dcec;border-color:#536d80}html.theme--dark .ph-p-route li small{color:#9ed7c8}html.theme--dark .ph-p-study-tools{background:linear-gradient(90deg,#253a4b,#2c3c42)}html.theme--dark .ph-p-focus-toggle{background:#494331;color:#edd7a9;border-color:#81714d}html.theme--dark .ph-p-focus-toggle[aria-pressed=true]{background:#284e49;color:#bfebdf;border-color:#54887e}html.theme--dark .ph-p-outline>nav>button:hover{background:#2c465a;color:#bae2e7}html.theme--dark .ph-problem-hall:not(.is-in-contest) .ph-p-statement .problem-content h3{color:#83bfbf}html.theme--dark .ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link:hover{background:#47402e;color:#ffe3ae}html.theme--dark .ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link.active,html.theme--dark .ph-problem-hall:not(.is-in-contest) .medium-3 .menu__link--active{background:linear-gradient(90deg,#2d4b60,#233846);color:#bfddea}
@media(max-width:1000px){.ph-p-route li small{margin-left:0}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title{font-size:23px;padding-right:50px}.ph-p-crest{width:50px;height:50px;right:18px}.ph-p-study-tools{gap:8px;padding:10px 12px}.ph-p-focus-toggle{font-size:10px!important}}@media(max-width:760px){html.page--problem_detail body .main{padding-top:18px!important}.ph-problem-hall:not(.is-in-contest) .ph-p-summary>.section__header{padding:23px 18px 21px}.ph-problem-hall:not(.is-in-contest) .ph-p-summary .section__title{font-size:21px;padding-right:30px;line-height:1.7}.ph-p-crest{right:11px;width:39px;height:39px;opacity:.35}.ph-p-summary>.section__header>.ph-p-eyebrow{font-size:8px;letter-spacing:.8px;margin-bottom:10px}.ph-problem-hall:not(.is-in-contest) .ph-p-summary>.section__body{padding:12px}.ph-problem-hall:not(.is-in-contest) .problem__tag-item{font-size:10px;padding:4px 7px}.ph-p-routes{padding:15px 13px;border-radius:10px}.ph-p-routes>header{gap:8px}.ph-p-routes h2{font-size:15px!important}.ph-p-routes .ph-p-eyebrow{font-size:8px}.ph-p-route-count{font-size:9px;padding:4px 6px}.ph-p-route{padding:11px;gap:9px}.ph-p-route-glyph{width:27px;height:32px;border-radius:6px}.ph-p-route-glyph svg{width:19px;height:19px}.ph-p-route h3{font-size:13px!important}.ph-p-route li>a{font-size:10px;gap:3px 6px;align-items:flex-start}.ph-p-route-stage{font-size:8px}.ph-p-route li small{font-size:9px}.ph-p-no-route{font-size:10px}.ph-p-study-tools{flex-wrap:wrap;justify-content:space-between;gap:7px;padding:10px}.ph-p-study-tools summary{font-size:10px}.ph-p-focus-toggle{font-size:10px!important;padding:7px 8px}.ph-p-read-progress{width:100%;display:flex;align-items:center;gap:10px;font-size:9px;margin-left:0}.ph-p-read-progress>div{flex:1;margin-top:0}.ph-p-outline>nav{min-width:220px;max-width:calc(100vw - 48px)}.ph-p-routes header h2{line-height:1.7}.ph-problem-hall .ph-p-statement .problem-content h2,.ph-problem-hall .ph-p-statement .problem-content h3{scroll-margin-top:105px}}
@media(prefers-reduced-motion:reduce){.ph-problem-hall *{animation:none!important;transition:none!important}}html[data-ph-motion-paused=true] .ph-problem-hall *{animation-play-state:paused!important}
.ph-problem-hall .section__tab-header>.ph837-problem-chip{display:none!important}
