.tvm-inventory,.tvm-editorial,.tvm-buying-nav{--tvm-ink:#172620;--tvm-green:#285a45;--tvm-line:#d8e2da;--tvm-wash:#f2f6f1;color:var(--tvm-ink)}
.tvm-inventory [hidden]{display:none!important}
.tvm-controls{margin:0 0 1.65rem}
.tvm-filter-panel,.tvm-editorial .tvm-panel{border:1px solid var(--tvm-line);background:var(--tvm-wash);border-radius:1.15rem;padding:clamp(1rem,3vw,1.65rem)}
.tvm-filter-panel summary,.tvm-terms summary{cursor:pointer;font-weight:700;min-height:44px;align-content:center}
.tvm-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.6rem),1fr));gap:.8rem;align-items:end;margin:.85rem 0 0}
.tvm-filters label{display:grid;gap:.32rem;font-size:.88rem;font-weight:650;margin:0}
.tvm-filters input,.tvm-filters select{box-sizing:border-box;min-width:0;width:100%;margin:0!important;min-height:44px;border:1px solid #87978b;border-radius:.55rem;background:white;color:#172620}
.tvm-toolbar,.tvm-buying-nav{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin:1rem 0}
.tvm-toolbar p{margin:0 auto 0 0;font-weight:650}
.tvm-inventory .tvm-button,.tvm-editorial .tvm-button,.tvm-buying-nav .tvm-button{display:inline-flex;justify-content:center;align-items:center;gap:.35rem;min-height:44px;border:1px solid #73877b;border-radius:.7rem;background:#fff;color:#1c4333;font:inherit;font-weight:650;line-height:1.2;padding:.65rem .85rem;margin:0;text-decoration:none}
.tvm-inventory .tvm-primary,.tvm-button[aria-pressed=true]{background:#285a45;color:white}
.tvm-button:disabled{opacity:.55}
.tvm-inventory button:focus-visible,.tvm-inventory summary:focus-visible,.tvm-buying-nav a:focus-visible{outline:2px solid #246132;outline-offset:3px}
.tvm-inventory .tts-mini-specs dd{overflow-wrap:anywhere}
.tvm-inventory .tts-card__actions{margin-top:.75rem}
.tvm-photo{display:block;color:#365448;font-size:.8rem;margin:.5rem 0 0}
.tvm-terms{margin:.65rem 0;border-top:1px solid var(--tvm-line)}
.tvm-terms dl{display:grid;gap:.45rem;margin:0 0 .65rem}
.tvm-terms dl>div{display:flex;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.tvm-terms dd{font-weight:650;margin:0}
.tvm-dialog{box-sizing:border-box;border:1px solid var(--tvm-line);border-radius:1.2rem;padding:clamp(1rem,3vw,2rem);width:min(65rem,calc(100vw - 2rem));max-height:85dvh;color:#172620;background:white}
.tvm-dialog::backdrop{background:#0b1511aa}
.tvm-dialog form{margin:0 0 1.25rem}
.tvm-table-wrap{overflow:auto}
.tvm-table-wrap table{margin:0;min-width:30rem;border-collapse:collapse}
.tvm-table-wrap th,.tvm-table-wrap td{padding:.75rem;border:1px solid var(--tvm-line);text-align:left}
.tvm-editorial,.tvm-buying-nav{max-width:1200px;box-sizing:border-box;margin:clamp(1.5rem,4vw,3rem) auto;padding-inline:clamp(1rem,4vw,2.4rem)}
.tvm-editorial h2{line-height:1.12}
.tvm-editorial p{max-width:67ch}
.tvm-editorial .tvm-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));margin:1rem 0 1.75rem}
.tvm-editorial .tvm-panel p:last-child{margin-bottom:0}
.tvm-editorial details:not(.tvm-filter-panel):not(.tvm-terms){border-bottom:1px solid var(--tvm-line);padding:1rem 0}
.tvm-editorial summary{cursor:pointer;font-weight:700}
.tvm-swipe{display:none}
.tvm-editorial[id=mac-stock],.tvm-inventory[id=mac-stock]{scroll-margin-top:115px}
.tvm-editorial .tvm-buying-nav{padding-inline:0;margin-inline:0}
.tvm-filters input[type=number]{border:1px solid #87978b;border-radius:.55rem;background:white;box-shadow:none}
@media (max-width:600px){
    .tvm-swipe{display:block;color:#365448;font-size:.88rem;margin:0 0 .65rem}
    .tvm-table-wrap table{min-width:0;width:max-content}
    .tvm-table-wrap th,.tvm-table-wrap td{max-width:9rem;min-width:6.25rem;font-size:.86rem;padding:.55rem;overflow-wrap:anywhere}
    .tvm-table-wrap tr>:first-child{position:sticky;left:0;background:#f2f6f1;min-width:6.5rem;max-width:6.5rem}
}
.tts-model-hero.tvm-model-cover{background:#e8f0e9;border-block:1px solid #d5e0d7}
.tvm-model-cover .tts-model-shell{padding-block:clamp(2rem,4vw,4.35rem)}
.tvm-model-cover h1{max-width:18ch;font-family:Georgia,serif;font-weight:500;line-height:1.04;letter-spacing:-.035em;color:#173b2e}
.tvm-model-cover .tts-model-lead{max-width:63ch}
.tvm-model-cover .tts-model-stock-photos{margin-block:1.75rem}
.tvm-model-cover .tts-model-stock-photo{background:#fff;border:1px solid #d5e0d7;border-radius:.9rem;overflow:hidden}
@media (min-width:950px){
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos){display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:clamp(2rem,4vw,4rem);align-items:start}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>*{grid-column:1}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>.tts-model-breadcrumbs{grid-column:1/-1}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>.tts-model-stock-photos{grid-column:2;grid-row:2/span 6;margin-block:0}
    .tvm-model-cover .tts-model-stock-photos__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr))}
}
@media (max-width:600px){
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos){display:flex;flex-direction:column}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>*{width:100%;order:2}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>:is(nav,.tts-model-eyebrow,h1,.tts-model-lead){order:0}
    .tvm-model-cover .tts-model-shell:has(.tts-model-stock-photos)>.tts-model-stock-photos{order:1;margin:0 0 1.15rem}
}
/* Photos are kept in a consistent frame without cropping the device. */
:is(.tts-model-page,.tts-mac-hub) .tvm-model-directory .tts-iphone-directory__grid{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;
}
:is(.tts-model-page,.tts-mac-hub) .tvm-model-directory .tts-iphone-model-card{
    display:flex;flex-direction:column;justify-content:initial;padding:0;gap:0;min-width:0;min-height:0;
    overflow:hidden;border-radius:1rem;border:1px solid #d8e2da;background:#fff;
}
.tvm-directory-media{position:relative;display:grid;place-items:center;aspect-ratio:4/3;background:#f0f4f0;padding:.85rem}
.tvm-model-directory .tvm-directory-media img{
    display:block;width:100%;height:100%;aspect-ratio:4/3;min-height:0;max-height:12rem;object-fit:contain;object-position:center;
}
.tvm-directory-photo-note{
    position:absolute;bottom:.55rem;left:.55rem;padding:.24rem .5rem;background:#fff;border-radius:.35rem;color:#35473b;
    font-size:.72rem;line-height:1.15;
}
.tvm-directory-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.45rem;padding:1rem}
.tvm-directory-copy .tts-iphone-model-card__name{line-height:1.25;font-size:1.03rem;overflow-wrap:anywhere}
.tvm-directory-copy .tts-iphone-model-card__link{display:inline-flex;gap:.35rem;align-items:center;margin-top:auto;padding-top:.45rem;color:#285a45}
.tvm-model-directory .tts-iphone-model-card:hover{border-color:#82a58d}
.tvm-model-directory .tts-iphone-model-card:focus-visible{outline:2px solid #285a45;outline-offset:3px}
@media (max-width:999px){:is(.tts-model-page,.tts-mac-hub) .tvm-model-directory .tts-iphone-directory__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){:is(.tts-model-page,.tts-mac-hub) .tvm-model-directory .tts-iphone-directory__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.tvm-directory-copy{padding:.75rem}}
@media (max-width:350px){:is(.tts-model-page,.tts-mac-hub) .tvm-model-directory .tts-iphone-directory__grid{grid-template-columns:minmax(0,1fr)}}
