/* digitalproductfield.com
   Ranking-directory layout. Palette sampled from images/logo.png:
   ink #49422F, olive #7F734B, peach #FFAB82, blush #FCDEE0.
   Derived: light olive #B3A98C, peach-deep #B5603A, cream #FBF3EA, dashed line #C9B9A0. */

:root {
  --ink: #49422F;
  --ink-2: #2F2A1E;
  --olive: #7F734B;
  --olive-lt: #B3A98C;
  --peach: #FFAB82;
  --peach-2: #F08E5E;
  --peach-dk: #B5603A;
  --blush: #FCDEE0;
  --cream: #FBF3EA;
  --line: #C9B9A0;
  --muted: #776C57;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; list-style-type: none; }
html { height: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: "Nunito Sans", Avenir, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.45;
  padding-top: 65px;
  overflow-x: hidden;
}
body > main { flex: 1 0 auto; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--peach-dk); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1001;
  transition: box-shadow .3s;
}
.site-header.fixed { box-shadow: 0 1px 4px rgba(47, 42, 30, .2); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 65px; padding: 0 15px; max-width: 100%; margin: 0 auto; width: 95%;
}
.brand { width: 190px; display: block; }
.brand img { width: 100%; }
.nav { margin-left: auto; }
.nav ul { display: flex; }
.nav li { margin-left: 32px; position: relative; }
.nav a {
  color: #5E5645; font-size: 16px; font-weight: 600; letter-spacing: .25px;
  text-decoration: none; padding: 20px 0; white-space: nowrap; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 1px; bottom: 12px; height: 2px; width: 0;
  background: var(--peach-dk); transition: width .8s cubic-bezier(.19, 1, .22, 1);
}
.nav a.active, .nav a:hover { color: var(--peach-dk); }
.nav a.active::after, .nav a:hover::after { width: 28px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; position: relative; height: 20px; width: 30px; margin-left: auto; }
.nav-toggle span {
  background: var(--peach-2); border-radius: 9px; display: block; position: absolute; left: 0;
  height: 4px; width: 100%; transition: .25s ease-in-out;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 8px; transform: rotate(135deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 8px; transform: rotate(-135deg); }

/* ---------- Home layout ---------- */
.flex-container { display: flex; margin: 0 auto; position: relative; padding: 0 15px; max-width: 1250px; width: 95%; }
.flex-revers { flex-direction: row-reverse; }
.home-wrap section { padding: 2.25em 0; }
.home-wrap section:nth-child(even) {
  background-color: var(--cream);
  background-image: repeating-linear-gradient(-55deg, rgba(201, 185, 160, .13) 0 2px, transparent 2px 7px);
  border-top: 3px solid rgba(255, 171, 130, .28);
}
.fc-content { flex: 1; max-width: 40.75em; }
.fc-content h2 {
  font-family: "Nunito", "SF Pro Rounded", sans-serif; font-weight: 900; color: var(--ink-2);
  font-size: 2em; line-height: 1.275; letter-spacing: .5px; margin-bottom: .75em;
}
.fc-content p { color: var(--muted); font-size: 1em; font-weight: 500; letter-spacing: .3px; margin-bottom: .6em; }
.fc-img { margin-left: 3.75em; width: 15em; flex: 0 0 auto; }
.fc-img.fc-lg { width: 17.75em; }
.home-wrap section:nth-child(even) .fc-img { margin-left: 0; margin-right: 3.75em; }
.home-wrap section:not(.rating-section) .flex-container { align-items: center; }
.home-wrap section:not(.rating-section) .flex-container:not(.flex-revers) .fc-img { margin-left: 0; margin-right: 3.75em; }
.home-wrap section:not(.rating-section) .flex-revers .fc-img { margin-right: 0; margin-left: 3.75em; }

/* Title */
.home-wrap .rating-section { padding: 0 0 1.5em; }
.home-title { font-size: 2em; font-family: "Nunito", sans-serif; margin: 10px 0 90px; text-transform: uppercase; width: 100%; }
.home-title .eyebrow {
  display: inline-block; font-size: .42em; font-weight: 800; letter-spacing: .14em; color: var(--white);
  background: var(--olive); border-radius: 99px; padding: .3em .9em; margin: 0 0 .5em 35px;
}
.home-title h1 {
  display: block; font-size: 2.175em; font-weight: 900; line-height: 1.1em; margin: 0 35px; position: relative; z-index: 0;
}
.home-title h1::after {
  content: ""; background: var(--blush); position: absolute; left: -.4em; bottom: -.45em; height: .9em; width: 10em; z-index: -1;
}
.home-title .t1 { color: var(--olive-lt); }
.home-title .t2 { color: var(--ink); }
.home-title .t3 { color: var(--peach-2); }
.subhead { color: var(--peach-dk); font-size: .8em; font-weight: 800; line-height: 1.45; margin: .9em 35px 0; letter-spacing: .02em; }

/* Ranking table */
.rating-section .fc-img { margin: 0 2.25em 0 3.5em; width: 15em; }
.rating-section .fc-img img { max-width: 12em; }
.rating-table { margin: -2em 0 0; flex: 1 1 0; min-width: 0; position: relative; padding: 1.25em .75em; }
.rating-table::before, .rating-table::after {
  content: ""; position: absolute; width: 1.6em; height: 1.4em; border: 3px solid var(--peach);
}
.rating-table::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.rating-table::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.rating-list { padding: .5em .5em 0; }
.rating-list::before {
  content: ""; position: absolute; top: 0; right: 0; width: 1.6em; height: 1.4em;
  border: 3px solid var(--peach); border-left: 0; border-bottom: 0;
}
.rating-list li { display: flex; align-items: center; white-space: nowrap; }
.rating-list li + li { border-top: 2px dashed var(--line); }
.rl-brand {
  border-right: 2px dashed var(--line); min-width: 11.5em; padding: .72em 0 .72em .75em;
  color: var(--ink-2); font-size: 1.1em; font-weight: 700; letter-spacing: .015em; display: flex; align-items: center; gap: .55em;
}
.rl-ico {
  display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; flex: 0 0 auto;
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: .72em; color: var(--white); border: 2px solid var(--ink);
}
.rl-ico.c1 { background: var(--peach-2); }
.rl-ico.c2 { background: var(--olive); }
.rl-ico.c3 { background: var(--peach-dk); }
.rl-ico.c4 { background: var(--ink); }
.rl-stat { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0 1em; width: 100%; }
.rls-tags { color: var(--olive); font-size: .85em; font-weight: 700; background: var(--cream); border-radius: 99px; padding: .15em .75em; }
.rls-best { color: var(--ink-2); font-size: 1em; font-weight: 700; letter-spacing: .015em; }
.rl-note { color: var(--muted); font-size: .66em; margin: .9em .5em 0; white-space: normal; }

/* Newsletter */
.sub-form { margin-top: 1em; }
.field-row { display: flex; gap: .5em; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 14em; min-width: 0; font: inherit; font-size: .9em; color: var(--ink);
  padding: .7em 1em; border: 2px solid var(--ink); border-radius: 99px; background: var(--white);
}
.field-row input:focus { outline: 3px solid var(--peach); outline-offset: 2px; }
.field-row input[aria-invalid="true"] { border-color: #A33A22; }
.btn {
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: .9em; letter-spacing: .03em;
  background: var(--peach); color: var(--ink-2); border: 2px solid var(--ink); border-radius: 99px;
  padding: .7em 1.6em; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.consent { font-size: .7em !important; margin-top: .9em; }
.form-msg { font-size: .8em !important; font-weight: 700 !important; min-height: 1.2em; }
.form-msg.ok { color: #3E6B2A !important; }
.form-msg.err { color: #A33A22 !important; }

/* ---------- Subpages ---------- */
.page-hero {
  background-color: var(--cream);
  background-image: repeating-linear-gradient(-55deg, rgba(201, 185, 160, .13) 0 2px, transparent 2px 7px);
  padding: 2.25em 0 1.75em; border-bottom: 3px solid rgba(255, 171, 130, .35);
}
.wrap { margin: 0 auto; padding: 0 15px; max-width: 820px; width: 95%; }
.page-hero .eyebrow {
  display: table; font-family: "Nunito", sans-serif; font-size: .6em; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white); background: var(--olive); border-radius: 99px; padding: .3em .9em; margin-bottom: .6em;
}
.page-hero h1 {
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: 2.2em; line-height: 1.15; color: var(--ink-2);
  display: inline-block; position: relative; z-index: 0; margin-bottom: .45em;
}
.page-hero h1::after { content: ""; background: var(--blush); position: absolute; left: -.25em; right: -.25em; bottom: -.1em; height: .45em; z-index: -1; }
.page-hero p { color: var(--muted); font-size: .95em; }
.page-hero .updated { font-size: .7em; margin-top: .6em; color: var(--olive); font-weight: 700; }
.prose { padding: 2em 0 3em; }
.prose h2 { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.3em; color: var(--ink-2); margin: 1.4em 0 .5em; }
.prose h3 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.05em; color: var(--ink-2); margin: 1.1em 0 .4em; }
.prose p, .prose li { color: #5E5645; font-size: .85em; margin-bottom: .7em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose ul li { padding-left: 1em; position: relative; }
.prose ul li::before { content: ""; width: .3em; height: .3em; border-radius: 50%; border: 2px solid var(--peach-2); position: absolute; left: 0; top: .55em; }
.info-card { background: var(--cream); border: 2px dashed var(--line); border-radius: 12px; padding: 1em 1.2em; margin-bottom: 1.2em; }
.info-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .35em 1.2em; font-size: .85em; }
.info-card dt { font-weight: 800; color: var(--ink-2); }
.info-card dd { color: #5E5645; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #F7F1E8; padding: 1.75em 0 0; text-align: center; }
.site-footer nav { padding: 0 20px; }
.site-footer nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.site-footer nav li { margin: 0 5px; }
.site-footer nav a { color: #F7F1E8; font-size: .9em; text-decoration: none; padding: .5em; white-space: nowrap; }
.site-footer nav a:hover { text-decoration: underline; color: var(--white); }
.foot-company { font-style: normal; font-size: .72em; line-height: 1.7; color: #E6DCCB; margin: 1.3em auto 1.5em; padding: 0 20px; }
.foot-company a { color: var(--peach); text-decoration: none; }
.foot-company a:hover { text-decoration: underline; }
.foot-copy { background: var(--ink-2); font-size: .75em; padding: .6em 20px; }

/* ---------- Responsive (mirrors the reference breakpoints) ---------- */
@media only screen and (max-width: 1300px) {
  body { font-size: 1.55vw; }
  .home-title { font-size: 2.1em; }
}
@media only screen and (max-width: 1024px) {
  body { font-size: 2.75vw; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 65px; left: 0; right: 0; background: var(--cream);
    box-shadow: 0 6px 10px rgba(47, 42, 30, .15); padding: .5em 0 1em;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: center; }
  .nav li { margin: 0; }
  .nav a { display: block; padding: .7em 0; font-size: 17px; }
  .nav a::after { bottom: 4px; }
  .home-title { font-size: 3.525vw; margin: 1.5em 0 .75em; text-align: center; }
  .home-title .eyebrow { margin-left: 0; }
  .home-title h1 { margin: 0; display: inline-block; }
  .home-title h1::after { left: -.2em; width: calc(100% + .4em); }
  .subhead { margin: 1em 0 0; }
  .rating-section .flex-container:last-child { flex-wrap: wrap; }
  .rating-section .fc-img { display: none; }
  .rating-table { font-size: 2.6vw; margin: 0; padding: 1.2em 0; width: 100%; }
  .home-wrap section .flex-container, .home-wrap section .flex-container.flex-revers { flex-direction: column; }
  .home-wrap section:not(.rating-section) .fc-img,
  .home-wrap section:not(.rating-section) .flex-revers .fc-img,
  .home-wrap section:not(.rating-section) .flex-container:not(.flex-revers) .fc-img,
  .home-wrap section:nth-child(even) .fc-img,
  .fc-img.fc-lg { margin: 1em auto 1.5em; width: 11.5em; }
  .fc-content { flex: 100%; text-align: center; max-width: 100%; }
  .fc-content h2 { font-size: 1.5em; }
  .fc-content p { line-height: 1.55; }
  .field-row { justify-content: center; }
  .wrap { max-width: 100%; }
}
@media only screen and (max-width: 480px) {
  body { font-size: 3.75vw; padding-top: 45px; }
  .site-header .wrap { height: 45px; width: 100%; padding: 0 12px; }
  .brand { width: 150px; }
  .nav { top: 45px; }
  .nav-toggle { width: 25px; }
  .nav-toggle span { height: 3px; }
  .rating-table { font-size: 3.4vw; }
  .rl-brand { min-width: 9.5em; }
  .rls-tags { display: none; }
  .info-card dl { grid-template-columns: 1fr; }
  .info-card dt { margin-top: .4em; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
