.teacher-methodical-page { --methodical-teal: #0f7184; --methodical-gold: #d9a441; }
.teacher-methodical-hero {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr);
    align-items: center;
    gap: clamp(24px,4vw,54px);
    padding: clamp(22px,3.4vw,40px);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--library-border);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 10% 0, color-mix(in srgb,var(--library-accent) 12%,transparent),transparent 44%),
        linear-gradient(120deg,var(--library-surface),var(--library-soft));
}
.teacher-methodical-hero__copy { min-width: 0; }
.teacher-methodical-page .teacher-methodical-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(38px,5vw,60px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.045em;
}
.teacher-methodical-hero h1 span { display: inline-block; color: var(--methodical-teal); opacity: 0; transform: translateY(18px); animation: methodical-rise .65s cubic-bezier(.2,.8,.2,1) forwards; }
:root[data-theme="dark"] .teacher-methodical-hero h1 span { color: #63d3e2; }
.teacher-methodical-hero h1 span:nth-child(2) { animation-delay: .12s; }
@keyframes methodical-rise { to { opacity: 1; transform: none; } }
.teacher-methodical-hero__rule { display: block; width: 78px; height: 3px; margin: 16px 0 13px; border-radius: 3px; background: var(--methodical-gold); transform-origin: left; animation: methodical-rule .8s .25s both; }
@keyframes methodical-rule { from { transform: scaleX(0); } }
.teacher-methodical-hero__copy > p { max-width: 58ch; margin: 0; color: var(--library-muted); font-size: 15px; line-height: 1.75; }
.teacher-methodical-docs { position: relative; display: grid; width: min(100%,290px); aspect-ratio: 1; justify-self: center; place-items: center; perspective: 700px; }
.teacher-methodical-doc {
    position: absolute;
    display: grid;
    width: 58%;
    height: 72%;
    align-content: start;
    gap: 9px;
    padding: 18px 15px;
    border: 2px solid var(--methodical-teal);
    border-radius: 10px 16px 16px 10px;
    background: var(--library-surface);
    box-shadow: 0 18px 28px -16px #06303e66;
}
.teacher-methodical-doc::before,.teacher-methodical-doc::after { height: 7px; border-radius: 5px; background: var(--library-border); content: ""; }
.teacher-methodical-doc::before { width: 62%; height: 11px; background: var(--methodical-teal); }
.teacher-methodical-doc::after { width: 82%; box-shadow: 0 15px 0 var(--library-border),0 30px 0 var(--library-border); }
.teacher-methodical-doc:nth-child(1) { border-color: #31c9b9; background: linear-gradient(145deg,#0f6b86,#06303e); animation: methodical-doc-left 6s ease-in-out infinite; }
.teacher-methodical-doc:nth-child(2) { animation: methodical-doc-right 6s ease-in-out infinite -2s; }
.teacher-methodical-doc:nth-child(3) { z-index: 2; animation: methodical-doc-center 6s ease-in-out infinite -4s; }
.teacher-methodical-doc:nth-child(3) > i { position: absolute; right: 10px; bottom: 10px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #12a4a0; color: #fff; font-size: 18px; }
@keyframes methodical-doc-left { 50% { transform: rotate(-12deg) translate(-18%,-3%); } }
@keyframes methodical-doc-right { 50% { transform: rotate(8deg) translate(14%,-8%); } }
@keyframes methodical-doc-center { 50% { transform: translateY(-9px); } }
.teacher-methodical-directions { margin: 28px 0 22px; }
.teacher-methodical-directions .teacher-section-heading { align-items: end; margin-bottom: 15px; }
.teacher-methodical-directions .teacher-section-heading h2,.teacher-methodical-section-heading h2 { margin: 5px 0 0; font-size: 24px; font-weight: 750; letter-spacing: -.035em; }
.teacher-methodical-directions__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 0; }
.teacher-methodical-page .teacher-methodical-directions__grid > a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 145px;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--library-border);
    border-radius: 16px;
    background: var(--library-surface);
    color: var(--library-text);
    text-decoration: none;
    animation: methodical-rise .55s cubic-bezier(.2,.8,.2,1) both;
    transition: border-color .2s,box-shadow .2s,transform .2s;
}
.teacher-methodical-directions__grid > a:nth-child(4n+1) { --direction-accent: #0c9b91; }
.teacher-methodical-directions__grid > a:nth-child(4n+2) { --direction-accent: #456be6; }
.teacher-methodical-directions__grid > a:nth-child(4n+3) { --direction-accent: #9160ce; }
.teacher-methodical-directions__grid > a:nth-child(4n) { --direction-accent: #c7881a; }
.teacher-methodical-directions__grid > a > i {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb,var(--direction-accent) 14%,var(--library-soft));
    color: var(--direction-accent);
    font-size: 22px;
    transition: transform .3s;
}
.teacher-methodical-directions__grid > a > span:first-of-type { min-width: 0; padding: 3px 8px 0 0; }
.teacher-methodical-directions__grid strong,.teacher-methodical-directions__grid small { display: block; }
.teacher-methodical-directions__grid strong { font-size: 13px; line-height: 1.45; }
.teacher-methodical-directions__grid small { margin-top: 6px; color: var(--library-muted); font-size: 11px; line-height: 1.55; }
.teacher-methodical-direction-arrow { position: absolute; top: 16px; right: 15px; color: var(--direction-accent); opacity: 0; transform: translateX(-5px); transition: opacity .2s,transform .2s; }
.teacher-methodical-page .teacher-methodical-directions__grid > a:hover,.teacher-methodical-page .teacher-methodical-directions__grid > a:focus-visible { transform: translateY(-3px); border-color: var(--direction-accent); box-shadow: 0 12px 25px color-mix(in srgb,var(--direction-accent) 12%,transparent); }
.teacher-methodical-directions__grid > a:hover > i { transform: rotate(-7deg) scale(1.08); }
.teacher-methodical-directions__grid > a:hover .teacher-methodical-direction-arrow,.teacher-methodical-directions__grid > a:focus-visible .teacher-methodical-direction-arrow { opacity: 1; transform: none; }
.teacher-methodical-cycle,.teacher-methodical-quality,.teacher-methodical-outline { margin-top: 34px; }
.teacher-methodical-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 15px; }
.teacher-methodical-section-heading > p { max-width: 48ch; margin: 0 0 2px; color: var(--library-muted); font-size: 12px; line-height: 1.6; }
.teacher-methodical-panel { padding: clamp(16px,2.4vw,24px); border: 1px solid var(--library-border); border-radius: 20px; background: var(--library-surface); }
.teacher-methodical-phases { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.teacher-methodical-phases__track { position: absolute; top: 23px; right: 11%; left: 11%; height: 3px; overflow: hidden; border-radius: 3px; background: var(--library-border); }
.teacher-methodical-phases__track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--methodical-teal),#12a4a0); transition: width .45s cubic-bezier(.3,.9,.3,1); }
.teacher-methodical-phases > button { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; border: 0; background: transparent; color: var(--library-text); text-align: center; cursor: pointer; }
.teacher-methodical-phase-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid var(--library-border); border-radius: 50%; background: var(--library-surface); color: var(--library-muted); font-size: 19px; transition: background .25s,border-color .25s,color .25s,transform .25s,box-shadow .25s; }
.teacher-methodical-phases > button[aria-selected="true"] .teacher-methodical-phase-icon { transform: scale(1.12); border-color: var(--methodical-teal); background: var(--methodical-teal); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb,var(--methodical-teal) 18%,transparent); }
.teacher-methodical-phases > button.is-done .teacher-methodical-phase-icon { border-color: #12a4a0; }
.teacher-methodical-phases > button strong { font-size: 12px; line-height: 1.4; }
.teacher-methodical-phases > button small { color: var(--library-muted); font-size: 10px; line-height: 1.4; }
.teacher-methodical-phase-panel { min-height: 150px; padding: 18px; border: 1px solid var(--library-border); border-radius: 15px; background: var(--library-soft); }
.teacher-methodical-phase-panel h3 { margin: 0 0 12px; color: var(--methodical-teal); font-size: 19px; font-weight: 700; }
:root[data-theme="dark"] .teacher-methodical-phase-panel h3 { color: #63d3e2; }
.teacher-methodical-phase-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.teacher-methodical-phase-panel li { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--library-border); border-radius: 11px; background: var(--library-surface); color: var(--library-text); font-size: 12px; line-height: 1.5; animation: methodical-task-in .35s ease both; }
.teacher-methodical-phase-panel li::before { flex: 0 0 auto; color: #12a4a0; content: "✓"; font-weight: 800; }
@keyframes methodical-task-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.teacher-methodical-cycle-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--library-muted); font-size: 11px; }
.teacher-methodical-cycle-controls button { padding: 6px 12px; border: 1px solid var(--library-border); border-radius: 99px; background: var(--library-surface); color: var(--library-text); font-size: 11px; cursor: pointer; }
.teacher-methodical-cycle-controls button:hover { border-color: var(--library-accent); color: var(--library-accent); }
.teacher-methodical-quality__panel { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(190px,.6fr); align-items: center; gap: 28px; }
.teacher-methodical-quality fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.teacher-methodical-quality legend { margin-bottom: 10px; color: var(--library-text); font-size: 14px; font-weight: 700; }
.teacher-methodical-quality fieldset label { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid var(--library-border); border-radius: 11px; background: var(--library-soft); color: var(--library-text); font-size: 12px; line-height: 1.5; cursor: pointer; transition: border-color .2s,transform .2s,background .2s; }
.teacher-methodical-quality fieldset label:hover { transform: translateX(3px); border-color: var(--library-accent); }
.teacher-methodical-quality fieldset input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.teacher-methodical-quality fieldset label > span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 2px solid var(--library-border); border-radius: 7px; color: transparent; font-size: 14px; transition: background .2s,border-color .2s,color .2s,transform .2s; }
.teacher-methodical-quality fieldset input:checked + span { transform: scale(1.06); border-color: #12a4a0; background: #12a4a0; color: #fff; }
.teacher-methodical-quality fieldset input:focus-visible + span { outline: 3px solid var(--library-accent); outline-offset: 3px; }
.teacher-methodical-quality-score { display: grid; justify-items: center; gap: 10px; text-align: center; }
.teacher-methodical-quality-ring { position: relative; width: min(100%,190px); aspect-ratio: 1; }
.teacher-methodical-quality-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.teacher-methodical-quality-ring circle { fill: none; stroke-width: 10; }
.teacher-methodical-quality-ring__track { stroke: var(--library-border); }
.teacher-methodical-quality-ring__value { stroke: #12a4a0; stroke-dasharray: 301.59; stroke-dashoffset: 301.59; stroke-linecap: round; transition: stroke-dashoffset .65s cubic-bezier(.3,.9,.3,1),stroke .3s; }
.teacher-methodical-quality-ring strong { position: absolute; inset: 0; display: grid; place-items: center; color: var(--library-text); font-size: 34px; font-weight: 800; }
.teacher-methodical-quality-score > p { min-height: 2.8em; margin: 0; color: var(--library-muted); font-size: 12px; line-height: 1.5; }
.teacher-methodical-outline ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.teacher-methodical-outline li { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 11px 14px; border: 1px solid var(--library-border); border-left: 4px solid var(--methodical-teal); border-radius: 12px; background: var(--library-surface); }
.teacher-methodical-outline.is-observed:not(.is-visible) li { opacity: 0; transform: translateY(12px); }
.teacher-methodical-outline.is-visible li { animation: methodical-rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--methodical-delay,0ms); }
.teacher-methodical-outline li > span { color: var(--methodical-teal); font-size: 17px; font-weight: 800; }
.teacher-methodical-outline li strong,.teacher-methodical-outline li small { display: block; }
.teacher-methodical-outline li strong { color: var(--library-text); font-size: 13px; }
.teacher-methodical-outline li small { margin-top: 2px; color: var(--library-muted); font-size: 11px; line-height: 1.5; }
.teacher-methodical-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 22px 24px; border: 1px solid var(--library-border); border-radius: 19px; background: linear-gradient(110deg,var(--library-surface),var(--library-soft)); }
.teacher-methodical-cta h2 { margin: 5px 0; font-size: 21px; font-weight: 750; }
.teacher-methodical-cta p { margin: 0; color: var(--library-muted); font-size: 12px; }
.teacher-methodical-cta > a { display: inline-flex; min-height: 42px; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid transparent; border-radius: 99px; background: #0f766e; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .2s,filter .2s; }
.teacher-methodical-cta > a:hover { transform: translateY(-2px); filter: brightness(1.08); }
@media(max-width:767.98px) {
    .teacher-methodical-hero { grid-template-columns: minmax(0,1fr); gap: 0; }
    .teacher-methodical-docs { order: -1; width: min(100%,210px); margin: 0 auto 8px; }
    .teacher-methodical-hero__copy { padding-bottom: 8px; }
    .teacher-methodical-quality__panel { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media(max-width:575.98px) {
    .teacher-methodical-hero { padding: 18px; border-radius: 19px; }
    .teacher-methodical-page .teacher-methodical-hero h1 { font-size: clamp(36px,9vw,48px); }
    .teacher-methodical-hero__copy > p { font-size: 14px; }
    .teacher-methodical-directions .teacher-section-heading,.teacher-methodical-section-heading { align-items: flex-start; flex-direction: column; }
    .teacher-methodical-directions__grid { grid-template-columns: minmax(0,1fr); }
    .teacher-methodical-directions__grid > a { min-height: 0; }
    .teacher-methodical-phases { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 16px; }
    .teacher-methodical-phases__track { display: none; }
    .teacher-methodical-phases > button { min-height: 95px; }
    .teacher-methodical-phase-panel { padding: 14px; }
    .teacher-methodical-phase-panel ul { grid-template-columns: minmax(0,1fr); }
    .teacher-methodical-cycle-controls { align-items: flex-start; flex-direction: column; }
    .teacher-methodical-quality fieldset label { font-size: 11px; }
    .teacher-methodical-cta { padding: 19px; }
    .teacher-methodical-cta > a { width: 100%; justify-content: center; }
}
@media(prefers-reduced-motion:reduce) {
    .teacher-methodical-hero h1 span,.teacher-methodical-hero__rule,.teacher-methodical-doc,
    .teacher-methodical-directions__grid > a,.teacher-methodical-directions__grid > a > i,
    .teacher-methodical-direction-arrow,.teacher-methodical-phases__track > span,
    .teacher-methodical-phase-icon,.teacher-methodical-phase-panel li,
    .teacher-methodical-quality fieldset label,.teacher-methodical-quality fieldset label > span,
    .teacher-methodical-quality-ring__value,.teacher-methodical-outline li,.teacher-methodical-cta > a {
        animation: none !important;
        transition: none !important;
    }
    .teacher-methodical-hero h1 span,.teacher-methodical-outline li { opacity: 1; transform: none; }
}
