/*
Theme Name: teethwhite
Description: Review-publication theme for teethwhite.co
Version: 2.0.0
*/
:root {
  --ink: #141414;
  --body: #2a2a2a;
  --muted: #5f5f5f;
  --line: #dcdcdc;
  --rule: #141414;
  --paper: #ffffff;
  --wash: #f7f7f5;
  --accent: #0b6b5e;
  --accent-dark: #084f46;
  --tint: #e4f3ef;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--body); font: 400 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.012em; }
p { margin: 0 0 1.1em; }
main { flex: 1 0 auto; }
.tw-wrap { max-width: 1296px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* Illustrations */
.tw-art { display: block; overflow: hidden; line-height: 0; }
.tw-art svg { display: block; width: 100%; height: 100%; }
.tw-photo { background: #eceae6; }
.tw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Header */
.tw-header { background: var(--paper); }
.tw-masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 18px; padding-bottom: 14px; }
.tw-logo { display: inline-flex; align-items: center; gap: 8px; font: 700 30px/1 var(--slab); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.tw-logo svg { width: 30px; height: 30px; }
.tw-logo:hover { color: var(--ink); }
.tw-search { flex: 0 1 400px; display: flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.tw-search:focus-within { box-shadow: 0 0 0 2px var(--tint); }
.tw-search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; font: 400 15px/1.3 var(--sans); color: var(--ink); background: transparent; outline: none; -webkit-appearance: none; appearance: none; }
.tw-search button { border: 0; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); padding: 0 16px; cursor: pointer; }
.tw-search button:hover { background: var(--accent); }
.tw-nav-in { display: flex; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; position: relative; overflow-x: auto; scrollbar-width: none; }
.tw-nav-in::-webkit-scrollbar { display: none; }
.tw-nav-in::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1.5px solid var(--rule); }
.tw-nav a { font: 700 16px/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.tw-nav a:hover, .tw-nav a[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }
.tw-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.tw-menu-btn { display: none; }
.tw-disclose { margin: 0; background: var(--wash); text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink); padding: 12px 20px; }
.tw-disclose a { font-weight: 700; text-decoration: none; }
.tw-disclose a:hover { text-decoration: underline; }

/* Home top: three columns */
.tw-top { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 36px; padding: 24px 0 40px; align-items: start; }
.tw-story { display: block; text-decoration: none; }
.tw-story-art { aspect-ratio: 1 / 1; margin-bottom: 14px; }
.tw-story-title, .tw-lead-title { display: block; font-family: var(--serif); font-weight: 700; color: var(--ink); }
.tw-story-title { font-size: 18px; line-height: 1.25; }
.tw-story-desc { display: block; font-size: 14px; line-height: 1.5; color: var(--body); margin-top: 6px; }
.tw-story:hover .tw-story-title, .tw-lead:hover .tw-lead-title { text-decoration: underline; }
.tw-list { border-top: 1.5px solid var(--rule); margin-top: 24px; padding-top: 10px; }
.tw-top-right .tw-list { margin-top: 0; }
.tw-list h2 { font: 500 23px/1.2 var(--serif); margin-bottom: 10px; }
.tw-list > p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: -2px 0 14px; }
.tw-list > a { display: block; font: 600 15px/1.35 var(--sans); text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
.tw-list > a:first-of-type { border-top: 0; padding-top: 2px; }
.tw-list > a:hover { text-decoration: underline; color: var(--ink); }
.tw-pick { display: grid !important; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.tw-pick-art { width: 64px; height: 64px; }
.tw-lead { display: block; text-decoration: none; }
.tw-lead-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1.5px solid var(--rule); margin-top: 28px; padding-top: 20px; }
.tw-lead-more .tw-card-desc { -webkit-line-clamp: 2; }
.tw-art-lineup { aspect-ratio: 3 / 2; }
.tw-lead-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-top: 18px; letter-spacing: -0.02em; }
.tw-lead-desc { display: block; font-size: 17px; line-height: 1.5; color: var(--body); margin-top: 10px; max-width: 36em; }

/* Sections and cards */
.tw-section { padding: 0 0 44px; }
.tw-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1.5px solid var(--rule); padding-top: 12px; margin-bottom: 18px; }
.tw-section-head h2 { font: 500 28px/1.15 var(--serif); }
.tw-section-head h2 a { text-decoration: none; color: var(--ink); }
.tw-section-head h2 a:hover { text-decoration: underline; }
.tw-all { font: 700 14px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.tw-all:hover { text-decoration: underline; }
.tw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.tw-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tw-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-card { display: block; text-decoration: none; }
.tw-card-art { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.tw-card-art svg { width: auto; margin: 0 auto; }
.tw-card-body { display: block; }
.tw-card-kicker { display: block; font: 700 11.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tw-card-title { display: block; font: 700 18.5px/1.22 var(--serif); color: var(--ink); }
.tw-card:hover .tw-card-title { text-decoration: underline; }
.tw-card-desc { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Breadcrumb */
.tw-crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 22px; }
.tw-crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.tw-crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hub */
.tw-hub-head { padding: 22px 0 22px; max-width: 760px; }
.tw-hub-head h1 { font-size: clamp(34px, 4.8vw, 50px); font-weight: 700; }
.tw-hub-intro { margin-top: 12px; font-size: 18px; color: var(--body); }
.tw-hub-intro p:last-child { margin-bottom: 0; }
.tw-hub-head + .tw-grid { margin-bottom: 72px; border-top: 1.5px solid var(--rule); padding-top: 24px; }

/* Article */
.tw-article { display: grid; grid-template-columns: minmax(0, 760px); column-gap: 72px; padding: 14px 0 72px; }
.tw-article.has-toc { grid-template-columns: minmax(0, 760px) 280px; }
.tw-article-head { grid-column: 1; padding-bottom: 4px; }
.tw-kicker { font: 700 12.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.tw-article-head h1 { font-size: clamp(34px, 4.8vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.tw-byline { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.tw-verdict { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--tint); color: var(--accent-dark); }
.tw-verdict span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; }
.tw-verdict-no { background: #fbeceb; color: #8c2a22; }
.tw-verdict-no span { background: #b23a30; }
.tw-verdict-a-little { background: #fbf3df; color: #7a5a0c; }
.tw-verdict-a-little span { background: #a67a12; }
.tw-hero-art { height: auto; aspect-ratio: 16 / 9; margin-top: 22px; }
.tw-hero-art svg { width: auto; margin: 0 auto; }

.tw-toc { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 20px; font-size: 14.5px; border-top: 1.5px solid var(--rule); padding-top: 12px; margin-top: 8px; }
.tw-toc summary { font: 500 21px/1.2 var(--serif); color: var(--ink); cursor: default; list-style: none; margin-bottom: 12px; }
.tw-toc summary::-webkit-details-marker { display: none; }
.tw-section-plain { padding-top: 28px; }
.tw-toc ol { list-style: none; margin: 0; padding: 0; }
.tw-toc li { border-top: 1px solid var(--line); }
.tw-toc li:first-child { border-top: 0; }
.tw-toc a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; display: block; padding: 9px 0; }
.tw-toc a:hover { text-decoration: underline; }

.tw-content { grid-column: 1; min-width: 0; padding-top: 22px; font-size: 18px; line-height: 1.65; }
.tw-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.tw-content a:hover { color: var(--accent); }
.tw-content > p:first-child { font: 400 21px/1.5 var(--serif); color: var(--ink); }
.tw-content h2 { font-size: 31px; font-weight: 700; margin: 1.8em 0 .5em; scroll-margin-top: 20px; }
.tw-content h3 { font: 700 21px/1.25 var(--sans); letter-spacing: -0.005em; margin: 1.5em 0 .4em; }
.tw-content ul, .tw-content ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.tw-content li { margin-bottom: .45em; }
.tw-content { overflow-wrap: break-word; }
.tw-content a, .tw-content ol li { overflow-wrap: anywhere; }
.tw-content strong { color: var(--ink); font-weight: 700; }

.tw-takeaways { background: var(--wash); border-top: 4px solid var(--ink); padding: 20px 24px 8px; margin: 26px 0 8px; font-size: 16.5px; }
.tw-content .tw-takeaways h2 { font: 700 13px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; margin: 0 0 14px; }
.tw-takeaways ul { margin-bottom: .6em; }

.tw-table { overflow-x: auto; margin: 1.5em 0 1.5em; border-top: 1.5px solid var(--rule); border-bottom: 1px solid var(--line);
  background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0)) 0 0 / 36px 100% no-repeat local, linear-gradient(to left, #fff 40%, rgba(255,255,255,0)) 100% 0 / 36px 100% no-repeat local, linear-gradient(to right, rgba(20,20,20,.16), rgba(20,20,20,0)) 0 0 / 12px 100% no-repeat scroll, linear-gradient(to left, rgba(20,20,20,.16), rgba(20,20,20,0)) 100% 0 / 12px 100% no-repeat scroll; }
.tw-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.tw-table th, .tw-table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tw-table th { color: var(--ink); font: 700 12.5px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.tw-table tr:last-child td { border-bottom: 0; }
.tw-table td:first-child { color: var(--ink); font-weight: 600; }

.tw-products { margin: 2.2em 0; }
.tw-products-label { font: 700 13px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.tw-products-grid { display: grid; gap: 14px; }
.tw-product { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); }
.tw-product-art { height: 100%; min-height: 130px; }
.tw-product-art svg { width: auto; margin: 0 auto; max-height: 150px; }
.tw-product-body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.tw-product-name { font: 700 21px/1.2 var(--serif); color: var(--ink); margin: 0; }
.tw-products-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.tw-btn, .tw-content a.tw-btn { display: inline-block; align-self: flex-start; background: var(--ink); color: #fff; font: 700 15px/1 var(--sans); padding: 13px 18px; border-radius: 6px; text-decoration: none; }
.tw-btn:hover, .tw-content a.tw-btn:hover { background: var(--accent); color: #fff; }
.tw-btn-small, .tw-content a.tw-btn-small { font-size: 14.5px; padding: 15px 16px; }
.tw-buy { margin: .2em 0 1.6em; }

.tw-more { margin-top: 56px; border-top: 1.5px solid var(--rule); font-size: 17px; }
.tw-content .tw-more h2 { font: 500 26px/1.2 var(--serif); margin: 12px 0 18px; }
.tw-more a { text-decoration: none; }
.tw-more .tw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tw-more .tw-card-desc { display: none; }
.tw-more .tw-card-title { font-size: 17px; }

/* Footer */
.tw-footer { background: var(--ink); color: #cfcfcf; margin-top: 24px; font-size: 15px; }
.tw-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.tw-footer .tw-logo { color: #fff; font-size: 26px; }
.tw-footer .tw-logo span { color: #fff; }
.tw-footer-about p { margin: 14px 0 0; max-width: 30em; line-height: 1.55; }
.tw-footer-nav { display: grid; gap: 8px; align-content: start; }
.tw-footer-nav a { color: #cfcfcf; text-decoration: none; }
.tw-footer-nav a:hover { color: #fff; text-decoration: underline; }
.tw-footer-head { font-weight: 700; color: #fff; margin: 0 0 4px; }
.tw-footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 28px; font-size: 13.5px; color: #9d9d9d; }
.tw-footer-legal p { margin: 0; }

@media (max-width: 1000px) {
  .tw-top { grid-template-columns: minmax(0, 1fr) 220px; }
  .tw-top-center { grid-column: 1 / -1; grid-row: 1; }
  .tw-article.has-toc { grid-template-columns: minmax(0, 760px); }
  .tw-toc { grid-column: 1; grid-row: auto; position: static; margin: 18px 0 0; }
  .tw-toc summary { cursor: pointer; margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
  .tw-toc summary::after { content: "+"; font: 500 24px/1 var(--sans); }
  .tw-toc details[open] summary::after { content: "\2212"; }
  .tw-toc details[open] summary { margin-bottom: 10px; }
  .tw-grid, .tw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .tw-wrap { padding-left: 18px; padding-right: 18px; }
  .tw-masthead { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .tw-logo { font-size: 26px; }
  .tw-menu-btn { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 var(--sans); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tw-menu-icon { width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
  .tw-menu-toggle:focus-visible ~ .tw-masthead .tw-menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
  .tw-menu-toggle:checked ~ .tw-masthead .tw-menu-btn { background: var(--ink); color: #fff; }
  .tw-menu-toggle:checked ~ .tw-masthead .tw-menu-icon { background: #fff; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; }
  .tw-search { display: none; flex: 1 1 100%; }
  .tw-nav { display: none; }
  .tw-menu-toggle:checked ~ .tw-masthead .tw-search { display: flex; }
  .tw-menu-toggle:checked ~ .tw-nav { display: block; }
  .tw-nav-in { display: block; padding-top: 0; padding-bottom: 6px; overflow: visible; }
  .tw-nav-in::before { display: none; }
  .tw-nav a { display: block; font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .tw-nav a:last-child { border-bottom: 0; }
  .tw-nav a:hover, .tw-nav a[aria-current] { border-bottom-color: var(--line); color: var(--accent); }
  .tw-lead-more { grid-template-columns: 1fr; }
  .tw-top { grid-template-columns: 1fr; gap: 28px; }
  .tw-story { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; }
  .tw-story-art { grid-row: 1 / span 2; margin: 0; }
  .tw-story-desc { display: none; }
  .tw-list { margin-top: 20px; }
  .tw-grid, .tw-grid-2, .tw-grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .tw-lead-more .tw-card, .tw-section .tw-card, .tw-hub-head + .tw-grid .tw-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
  .tw-lead-more .tw-card-art, .tw-section .tw-card-art, .tw-hub-head + .tw-grid .tw-card-art { aspect-ratio: 1 / 1; margin: 0; }
  .tw-lead-more .tw-card-desc, .tw-section .tw-card-desc { display: none; }
  .tw-content { font-size: 17px; }
  .tw-content h2 { font-size: 26px; }
  .tw-product { grid-template-columns: 104px 1fr; }
  .tw-more .tw-grid-3 { grid-template-columns: 1fr; }
  .tw-more .tw-card { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
  .tw-more .tw-card-art { margin: 0; }
  .tw-footer-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; }
  .tw-footer-about { grid-column: 1 / -1; }
  .tw-footer-nav a { padding: 3px 0; }
}
