/*
Theme Name: UTK Storefront
Version: 1.0.0
Text Domain: utk-storefront
*/

:root {
  --ink:#202223;
  --green:#006a37;
  --line:#dce5de;
  --wash:#f3f7f4;
  --width:1240px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--ink);
  background:white;
  font:16px/1.5 "Helvetica Neue",Arial,sans-serif;
}

img,video {
  max-width:100%;
  height:auto;
}

a {
  color:var(--green);
  text-underline-offset:.2em;
}

a:focus-visible,summary:focus-visible,input:focus-visible,button:focus-visible {
  outline:3px solid #11824b;
  outline-offset:3px;
}

.wrap {
  width:min(var(--width),calc(100% - 64px));
  margin-inline:auto;
}

.contact-bar {
  background:#f1f5f1;
  font-size:13px;
  color:#34493c;
}

.contact-bar .wrap,.mast-inner,.tools,.mast nav {
  display:flex;
  align-items:center;
  gap:22px;
}

.contact-bar .wrap {
  justify-content:space-between;
  min-height:33px;
}

.contact-bar a,.mast a,.mast summary {
  color:inherit;
  text-decoration:none;
}

.mast {
  border-bottom:1px solid var(--line);
  background:white;
  position:relative;
  z-index:5;
}

.mast-inner {
  min-height:77px;
  justify-content:space-between;
}

.brand img,.logo-foot {
  display:block;
  object-fit:contain;
}

.brand {
  flex-shrink:0;
}

.mast nav,.tools {
  font-size:15px;
  font-weight:600;
}

.tools {
  font-size:14px;
}

.mast a:hover,.mast summary:hover,footer a:hover {
  color:var(--green);
  text-decoration:underline;
}

details {
  position:relative;
}

summary {
  cursor:pointer;
  white-space:nowrap;
}

.dropdown {
  z-index:9;
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  min-width:180px;
  padding:14px 18px;
  background:white;
  border:1px solid var(--line);
  box-shadow:0 10px 26px #0002;
}

.dropdown a {
  display:block;
  padding:5px 0;
}

.tools .dropdown {
  left:auto;
  right:0;
}

.site-search {
  display:flex;
  align-items:stretch;
  margin:.45rem 0;
}

.site-search input,.site-search button {
  font:inherit;
  padding:9px 12px;
  border:1px solid #7c8e83;
}

.site-search button {
  color:white;
  background:var(--green);
  border-color:var(--green);
  cursor:pointer;
}

.hero {
  position:relative;
  background:#dfd5c8;
}

.hero img,.guide-banner img {
  display:block;
  width:100%;
}

.hero-cta {
  position:absolute;
  top:58%;
  left:3.6%;
  font-size:clamp(.78rem,1.3vw,1.2rem);
  font-weight:bold;
  padding:.48em 1.55em;
  background:white;
  color:#15472b;
  text-decoration:none;
  border-radius:4px;
}

.hero-cta:hover {
  background:#e6f1e9;
}

.home>section {
  margin:clamp(40px,6vw,80px) 0;
}

.section-head,.footer-cols {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
}

.section-head {
  margin-bottom:22px;
}

.section-head a {
  flex-shrink:0;
}

h1,h2,h3 {
  line-height:1.2;
  margin:0 0 .6em;
  color:#17271f;
}

h1,.section-head h2 {
  font-size:clamp(1.65rem,3.25vw,2.6rem);
  letter-spacing:-.035em;
}

h3 {
  font-size:1.14rem;
  line-height:1.38;
}

.section-head h1,.section-head h2 {
  margin:0;
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px 22px;
}

.tile {
  min-width:0;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
}

.tile a {
  text-decoration:none;
  color:var(--ink);
}

.tile a:hover h3 {
  text-decoration:underline;
}

.tile-photo {
  aspect-ratio:1.55;
  background:var(--wash);
  margin-bottom:15px;
  overflow:hidden;
}

.tile-photo img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.tile p {
  margin:.4em 0;
  color:#425149;
}

.guide-banner {
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(170px,1fr);
  align-items:center;
  background:var(--wash);
}

.guide-banner>div {
  padding:20px 12%;
}

.guide-banner h2 {
  font-size:clamp(1.4rem,3vw,2.2rem);
}

.catalog,.reading {
  padding-block:clamp(32px,6vw,78px);
  min-height:50vh;
}

.reading {
  max-width:900px;
}

.crumb {
  display:inline-block;
  margin-bottom:15px;
}

.entry {
  overflow-wrap:anywhere;
  line-height:1.72;
}

.entry p {
  margin:1em 0;
}

.entry iframe,.entry table {
  max-width:100%;
}

.entry video {
  display:block;
  width:100%;
  max-height:74vh;
  object-fit:contain;
  background:#191919;
}

.entry h2,.entry h3 {
  margin-top:1.4em;
}

.entry img {
  object-fit:contain;
}

.reading time {
  display:block;
  color:#536458;
  margin:.5em 0 1.4em;
}

.contact-cta {
  padding:1em;
  background:var(--wash);
}

.page-nav,.pagination {
  margin:2rem 0;
}

.page-numbers {
  display:inline-block;
  padding:.3em .62em;
}

footer {
  clear:both;
  background:var(--wash);
  border-top:1px solid var(--line);
  padding:40px 0 20px;
}

.footer-cols {
  align-items:flex-start;
}

.footer-cols>div {
  flex:1;
}

.footer-cols a {
  display:block;
  width:fit-content;
  margin:.3rem 0;
}

.footer-cols h2 {
  font-size:1.1rem;
}

.copyright {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:28px;
  font-size:.85rem;
  color:#546157;
}

.skip,.screen-reader-text {
  position:absolute;
  left:-10000px;
}

.skip:focus {
  z-index:20;
  left:8px;
  top:8px;
  background:white;
  padding:8px;
}

@media(max-width:900px) {
  .mast-inner {
    flex-wrap:wrap;
    gap:8px;
    padding-top:8px;
  }
  .mast nav {
    order:3;
    width:100%;
    flex-wrap:wrap;
    gap:6px 18px;
    padding-bottom:12px;
  }
  .tools {
    margin-left:auto;
  }
  .wrap {
    width:calc(100% - 36px);
  }
  .cards {
    gap:20px 14px;
  }
}

@media(max-width:600px) {
  .cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tile h3 {
    font-size:1rem;
  }
  .mast nav,.tools {
    font-size:.82rem;
  }
  .contact-bar .wrap {
    gap:6px;
    font-size:.72rem;
  }
  .guide-banner {
    grid-template-columns:1fr;
  }
  .guide-banner>div {
    padding:16px;
  }
  .footer-cols {
    flex-wrap:wrap;
  }
  .footer-cols>div {
    min-width:130px;
  }
  .wrap {
    width:calc(100% - 28px);
  }
  .section-head {
    align-items:flex-end;
  }
  .hero-cta {
    font-size:.72rem;
  }
  .site-search input {
    min-width:0;
  }
  .search-tool .dropdown {
    width:min(275px,calc(100vw - 28px));
  }
}

.category-links {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1rem;
  margin-bottom:2rem;
}

.source-body section{margin:2.5rem 0;overflow-wrap:anywhere}
.source-body h1{max-width:54ch}
.source-body .section-heading{font-size:clamp(1.45rem,3.3vw,2.5rem);font-weight:650;margin:1.2rem 0}
.source-body p,.source-body blockquote{max-width:85ch}
.source-body img{display:block;height:auto;max-height:34rem;object-fit:contain;margin:.5rem auto}
.source-body article img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.source-body .tile{padding:.8rem;min-width:0}
.source-body .tile h3{font-size:1.05rem}
.source-body .tile a[href]{color:var(--ink)}
.source-body a:not([href]){color:inherit}
.source-body .page-nav{display:flex;flex-wrap:wrap;gap:.35rem}
.hero-cta a{color:inherit}
.mast nav{gap:clamp(8px,1.3vw,20px);flex-wrap:wrap;padding:.55rem 0}
.mast nav .dropdown{min-width:15rem;max-height:55vh;overflow:auto}
.source-body img[src$="/source-next.svg"]{width:18px;height:18px;display:inline-block;vertical-align:middle}

.source-attributes{border-top:1px solid var(--line);padding:.65rem 0}
.source-attributes summary{width:max-content;font-weight:600}
.source-attributes ul{display:flex;flex-wrap:wrap;gap:.45rem 1.3rem;list-style:none;padding:0}
