/* Classroom Future blog: Notebook look. Tokens come from .tpn (homepage styles). */
body.tpb { background: #fff !important; }
body.tpb .tpn { --cf-shadow: 6px 6px 0 0 var(--ink, #0C0C0E); }
.tpn .tpb-main { padding-bottom: 40px; }
.tpn .tpb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpn .tpb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Hero on ruled paper */
.tpn .tpb-hero {
  position: relative; padding: 64px 0 36px; border-bottom: 2px solid var(--ink);
  background-color: #fff;
  background-image:
    linear-gradient(to right, transparent 71px, rgba(255,107,43,.55) 71px, rgba(255,107,43,.55) 73px, transparent 73px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 37px, var(--line, #DCE3EA) 37px, var(--line, #DCE3EA) 38px);
}
.tpn .tpb-hero--small { border-bottom: 0; padding: 48px 24px 12px; background-image: none; }
.tpn .tpb-hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: .95; margin: 8px 0 18px; }
.tpn .tpb-hero--small h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; }
.tpn .tpb-kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 13px; color: var(--rust, #C2410C); margin: 0; }
.tpn .tpb-kicker a { color: inherit; text-decoration: none; }
.tpn .tpb-lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; max-width: 720px; color: var(--body, #2B2B30); margin: 0 0 18px; }
.tpn .tpb-hero-note {
  position: absolute; right: 6%; top: 52px; transform: rotate(4deg);
  background: var(--gold); border: 2px solid var(--ink); box-shadow: var(--cf-shadow);
  padding: 14px 18px; font-size: 22px; max-width: 220px;
}
@media (max-width: 900px) { .tpn .tpb-hero-note { position: static; display: inline-block; transform: rotate(-2deg); margin: 4px 0 18px; } }

/* Chips */
.tpn .tpb-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tpn .tpb-chip {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .02em;
  padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 3px 0 0 var(--ink); margin: 0 0 10px;
}
.tpn a.tpb-chip:hover, .tpn .tpb-chip.is-on { background: var(--orange); color: var(--ink); }
.tpn .tpb-chip--gold { background: var(--gold); }

/* Cards */
.tpn .tpb-feature { margin: 40px 0 8px; }
.tpn .tpb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 28px 0; }
.tpn .tpb-grid:empty { display: none; }
@media (max-width: 960px) { .tpn .tpb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tpn .tpb-grid { grid-template-columns: 1fr; } }
.tpn .tpb-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: var(--cf-shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.tpn .tpb-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--ink); }
.tpn .tpb-card-img { display: block; aspect-ratio: 16 / 9; background: var(--mist); border-bottom: 2px solid var(--ink); overflow: hidden; }
.tpn .tpb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpn .tpb-card-body { padding: 18px 20px 20px; }
.tpn .tpb-card-title { font-size: 21px; line-height: 1.25; margin: 2px 0 10px; font-weight: 800; }
.tpn .tpb-card-title a { color: var(--ink); text-decoration: none; }
.tpn .tpb-card-title a:hover { background: linear-gradient(to top, rgba(255,107,43,.55) 0, rgba(255,107,43,.55) 40%, transparent 40%); }
.tpn .tpb-card-ex { color: var(--body); line-height: 1.55; margin: 0 0 12px; }
.tpn .tpb-meta { font-size: 14px; color: #5b5b63; margin: 0; }
.tpn .tpb-card--big { flex-direction: row; }
.tpn .tpb-card--big .tpb-card-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 2px solid var(--ink); }
.tpn .tpb-card--big .tpb-card-body { padding: 32px; align-self: center; }
.tpn .tpb-card--big .tpb-card-title { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 820px) {
  .tpn .tpb-card--big { flex-direction: column; }
  .tpn .tpb-card--big .tpb-card-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 2px solid var(--ink); }
  .tpn .tpb-card--big .tpb-card-body { padding: 20px; }
}
.tpn .tpb-pager { display: flex; gap: 10px; justify-content: center; margin: 10px 0 30px; }
.tpn .tpb-pager .page-numbers { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.tpn .tpb-pager .current { background: var(--orange); }

/* Single post */
.tpn .tpb-post { max-width: 860px; padding-top: 36px; }
.tpn .tpb-crumbs { font-size: 14px; color: #5b5b63; margin-bottom: 18px; }
.tpn .tpb-crumbs a { color: inherit; }
.tpn .tpb-post-head h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin: 6px 0 14px; }
.tpn .tpb-hero-img { margin: 26px 0 34px; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--cf-shadow); }
.tpn .tpb-hero-img img { width: 100%; height: auto; display: block; }
.tpn .tpb-box-label { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 900; margin: 0 0 8px; color: var(--ink); }
.tpn .tpb-sticky {
  background: var(--gold); border: 2px solid var(--ink); box-shadow: var(--cf-shadow);
  padding: 20px 22px; margin: 0 0 26px; transform: rotate(-.6deg);
}
.tpn .tpb-sticky p:last-child { margin: 0; font-size: 18px; line-height: 1.55; }
.tpn .tpb-takeaways {
  border: 2px solid var(--ink); border-radius: 16px; padding: 20px 24px; margin: 0 0 34px;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 33px, var(--line) 33px, var(--line) 34px);
}
.tpn .tpb-takeaways ol { margin: 0; padding-left: 0; list-style: none; counter-reset: tk; }
.tpn .tpb-takeaways li { counter-increment: tk; position: relative; padding-left: 40px; margin: 10px 0; line-height: 1.55; font-size: 17px; }
.tpn .tpb-takeaways li::before {
  content: counter(tk); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink); font-weight: 900; font-size: 13px; display: grid; place-items: center;
}
.tpn .tpb-content { font-size: 19px; line-height: 1.75; color: var(--body); }
.tpn .tpb-content h2 { font-family: "Darumadrop One", system-ui, sans-serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; color: var(--ink); margin: 46px 0 14px; }
.tpn .tpb-content h3 { font-size: 23px; line-height: 1.3; color: var(--ink); margin: 34px 0 10px; font-weight: 800; }
.tpn .tpb-content p { margin: 0 0 20px; }
.tpn .tpb-content a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.tpn .tpb-content ul, .tpn .tpb-content ol { margin: 0 0 22px; padding-left: 26px; }
.tpn .tpb-content li { margin: 6px 0; }
.tpn .tpb-content strong { color: var(--ink); }
.tpn .tpb-content blockquote { margin: 28px 0; padding: 16px 22px; border-left: 6px solid var(--orange); background: var(--mist); font-size: 20px; color: var(--ink); }
.tpn .tpb-content img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 12px; }
.tpn .tpb-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.tpn .tpb-content th, .tpn .tpb-content td { border: 2px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; }
.tpn .tpb-content th { background: var(--gold); }
.tpn .tpb-box { border: 2px solid var(--ink); border-radius: 16px; padding: 20px 22px; margin: 26px 0; background: #fff; box-shadow: var(--cf-shadow); }
.tpn .tpb-box p:last-child { margin: 0; line-height: 1.65; font-size: 17px; }
.tpn .tpb-box--example { background: var(--mist); }
.tpn .tpb-box--gold { background: #FFF6DB; }
.tpn .tpb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tpn .tpb-two .tpb-box { margin: 10px 0; }
@media (max-width: 720px) { .tpn .tpb-two { grid-template-columns: 1fr; } }
.tpn .tpb-faq { margin: 44px 0 10px; }
.tpn .tpb-faq h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 16px; }
.tpn .tpb-faq details { border: 2px solid var(--ink); border-radius: 14px; margin: 0 0 12px; background: #fff; }
.tpn .tpb-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tpn .tpb-faq summary::-webkit-details-marker { display: none; }
.tpn .tpb-faq summary::after { content: "+"; font-weight: 900; font-size: 22px; line-height: 1; }
.tpn .tpb-faq details[open] summary::after { content: "–"; }
.tpn .tpb-faq details p { padding: 0 20px 18px; margin: 0; line-height: 1.65; color: var(--body); }
.tpn .tpb-after { max-width: 1200px; }
.tpn .tpb-related h2, .tpn .tpb-books h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }

/* Newsletter block */
.tpn .tpb-brief {
  position: relative; background: var(--ink); color: #fff; border-radius: 22px; padding: 46px clamp(22px, 5vw, 56px);
  margin: 54px 0; border: 2px solid var(--ink); box-shadow: 8px 8px 0 0 var(--orange);
}
.tpn .tpb-brief h2 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 10px; }
.tpn .tpb-brief > p { color: #d7d7dc; max-width: 640px; font-size: 18px; line-height: 1.55; margin: 0 0 20px; }
.tpn .tpb-brief-note { position: absolute; right: 28px; top: -18px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); padding: 6px 14px; transform: rotate(3deg); font-size: 20px; }

/* Forms */
.tpn .tpb-sub { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tpn .tpb-sub input[type=text], .tpn .tpb-sub input[type=email] {
  flex: 1 1 180px; min-width: 0; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.tpn .tpb-sub input[name=email] { flex-basis: 240px; }
.tpn .tpb-sub button { cursor: pointer; font-family: inherit; }
.tpn .tpb-sub button[disabled] { opacity: .6; cursor: wait; }
.tpn .tpb-sub-msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 700; min-height: 1em; }
.tpn .tpb-sub-msg.is-err { color: var(--rust); }
.tpn .tpb-sub--dark .tpb-sub-msg { color: var(--gold); }
.tpn .tpb-sub--dark .tpb-sub-msg.is-err { color: #ffb38f; }
.tpn .tpb-sub-fine { flex-basis: 100%; margin: 0; font-size: 13px; color: #8b8b93; }
.tpn .tpb-sub--dark .btn-orange { box-shadow: 0 6px 0 0 #fff; border-color: #fff; }

/* Resources */
.tpn .tpb-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 24px auto 40px; }
.tpn .tpb-res-grid--one { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 860px) { .tpn .tpb-res-grid { grid-template-columns: 1fr; } }
.tpn .tpb-res { border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--cf-shadow); display: flex; flex-direction: column; }
.tpn .tpb-res-img { border-bottom: 2px solid var(--ink); background: var(--mist); aspect-ratio: 16 / 9; overflow: hidden; }
.tpn .tpb-res-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpn .tpb-res-body { padding: 22px 24px 26px; }
.tpn .tpb-res-body h2 { font-size: 26px; line-height: 1.2; margin: 4px 0 10px; font-weight: 800; }
.tpn .tpb-res-body > p { color: var(--body); line-height: 1.6; margin: 0 0 16px; }
.tpn .tpb-res-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 50px 0 0;
  border: 2px solid var(--ink); border-radius: 22px; padding: 30px 34px; background: var(--gold); box-shadow: var(--cf-shadow);
}
.tpn .tpb-res-strip h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 4px 0 0; }
.tpn .tpb-res-strip ul { list-style: none; margin: 0; padding: 0; }
.tpn .tpb-res-strip li { border-bottom: 2px dashed rgba(12,12,14,.35); }
.tpn .tpb-res-strip li a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 800; }
@media (max-width: 760px) { .tpn .tpb-res-strip { grid-template-columns: 1fr; } }

/* Books row (WooCommerce [products]) */
.tpn .tpb-books { margin: 40px 0 10px; }
.tpn .tpb-books-sub { color: var(--body); font-size: 18px; margin: 0 0 22px; }
.tpn .tpb-books ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0 0 26px !important; padding: 0 !important; list-style: none; }
.tpn .tpb-books ul.products::before, .tpn .tpb-books ul.products::after { display: none !important; }
.tpn .tpb-books ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; border: 2px solid var(--ink); border-radius: 16px; padding: 16px; background: #fff; box-shadow: var(--cf-shadow); text-align: left; }
.tpn .tpb-books ul.products li.product img { border-radius: 10px; border: 2px solid var(--ink); margin-bottom: 12px; }
.tpn .tpb-books ul.products li.product .woocommerce-loop-product__title { font-size: 17px; color: var(--ink); font-weight: 800; padding: 0; }
.tpn .tpb-books ul.products li.product .price { color: var(--ink); font-weight: 800; }
.tpn .tpb-books ul.products li.product .button { background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; box-shadow: 0 4px 0 0 var(--ink); }
@media (max-width: 820px) { .tpn .tpb-books ul.products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tpn .tpb-books ul.products { grid-template-columns: 1fr; } }
.tpn .tpb-empty { font-size: 20px; padding: 40px 0; }
