/* CayLiving Journal. Ported from the client mockup; all classes are jr-* to
   stay clear of the site-wide style.css. Serif is Georgia to match. */
.jr {
  --jr-bg: #fbfdfc;
  --jr-ink: #233533;
  --jr-primary: #004f4d;
  --jr-secondary: #188f8b;
  --jr-accent: #90be6d;
  --jr-bright: #00c2a8;
  --jr-border: #dce8e4;
  background: var(--jr-bg);
  color: var(--jr-ink);
}
.jr .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.jr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--jr-secondary);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}
.jr-meta {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jr-secondary);
  font: 800 10px/1.6 Arial, sans-serif;
  margin: 0;
}

/* Hub */
.jr-hub__intro {
  text-align: center;
  background: linear-gradient(#edf8f6 0%, #fbfdfc 100%);
  padding: 90px 24px 60px;
}
.jr-hub__intro .jr-eyebrow {
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
}
.jr-hub__intro h1 {
  letter-spacing: -0.045em;
  color: var(--jr-primary);
  margin: 12px 0 18px;
  font: 500 clamp(48px, 7vw, 78px) / 1 Georgia, serif;
}
.jr-hub__intro > p:last-child {
  color: #556c69;
  max-width: 620px;
  margin: 0 auto;
  font: 19px/1.6 Georgia, serif;
}
.jr-featured {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  width: min(1180px, 100% - 48px);
  min-height: 500px;
  margin: 0 auto;
  padding: 70px 0 90px;
}
.jr-featured__image {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: block;
}
.jr-featured__image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}
.jr-featured__image:hover img {
  transform: scale(1.02);
}
.jr-featured__image span {
  color: #003d3a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--jr-bright);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  top: 22px;
  left: 22px;
}
.jr-featured__copy {
  color: #fff;
  background: var(--jr-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 54px;
}
.jr-featured__copy .jr-meta {
  color: var(--jr-accent);
}
.jr-featured__copy h2 {
  letter-spacing: -0.035em;
  margin: 20px 0;
  font: 500 clamp(37px, 4vw, 54px) / 1.08 Georgia, serif;
}
.jr-featured__copy h2 a {
  color: inherit;
  text-decoration: none;
}
.jr-featured__copy > p {
  color: #cde0dd;
  font: 17px/1.6 Georgia, serif;
  margin: 0;
}
.jr-featured__cta {
  color: #fff;
  text-decoration: none;
  border-top: 1px solid #347572;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 800;
}
.jr-featured__cta span {
  color: var(--jr-accent);
  font-size: 20px;
}
.jr-all {
  background: #edf6f3;
  padding: 85px max(24px, 50vw - 590px) 100px;
}
.jr-all__title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.jr-all__title h2 {
  color: var(--jr-primary);
  margin: 10px 0 0;
  font: 500 48px Georgia, serif;
}
.jr-all__title > p {
  color: #6c7d79;
  font-size: 12px;
  margin: 0;
}
.jr-all__title b {
  color: var(--jr-primary);
}
.jr-filters {
  display: flex;
  gap: 8px;
  margin: 34px 0 30px;
  padding-bottom: 4px;
  overflow-x: auto;
}
.jr-filters button {
  color: #41605c;
  white-space: nowrap;
  background: none;
  border: 1px solid #cfe1dd;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 11px;
  cursor: pointer;
}
.jr-filters .selected {
  color: #fff;
  background: var(--jr-primary);
  border-color: var(--jr-primary);
}
.jr-all .jr-archive__grid {
  margin-top: 34px;
}
.jr-filters + .jr-archive__grid {
  margin-top: 0;
}
.jr-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.jr-card {
  background: #fff;
}
.jr-card > a {
  height: 230px;
  display: block;
  overflow: hidden;
}
.jr-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.jr-card > div {
  padding: 27px;
}
.jr-card h3 {
  color: var(--jr-primary);
  margin: 13px 0;
  font: 500 26px/1.2 Georgia, serif;
}
.jr-card h3 a {
  color: inherit;
  text-decoration: none;
}
.jr-card > div > p:not(.jr-meta) {
  color: #657572;
  font: 14px/1.6 Georgia, serif;
  margin: 0;
}
.jr-card__link {
  color: var(--jr-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--jr-bright);
  margin-top: 14px;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
}

/* Article hero */
.jr-hero {
  background: var(--jr-primary);
  display: flex;
  align-items: flex-end;
  min-height: 610px;
  position: relative;
  overflow: hidden;
}
.jr-hero picture,
.jr-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jr-hero__link {
  position: absolute;
  inset: 0;
  display: block;
}
.jr-hero__shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #002d2be6 0%, #003734a6 48%, #00000014 82%),
    linear-gradient(#0000 45%, #00232180);
}
/* Text sits over the hero link; only its own links and buttons catch clicks. */
.jr-hero__content {
  pointer-events: none;
  z-index: 1;
  color: #fff;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 70px 0 72px;
  position: relative;
}
.jr-hero__content a,
.jr-hero__content button {
  pointer-events: auto;
}
.jr-crumb {
  color: #d6eeea;
  margin-bottom: 70px;
  font-size: 13px;
  display: inline-block;
}
.jr-crumb a {
  color: inherit;
  text-decoration: none;
}
.jr-crumb span {
  margin: 0 8px;
}
.jr-hero .jr-eyebrow {
  color: var(--jr-bright);
}
.jr-hero h1 {
  letter-spacing: -0.045em;
  max-width: 760px;
  margin: 14px 0 20px;
  font: 500 clamp(48px, 7vw, 84px) / 0.98 Georgia, serif;
  color: #fff;
}
.jr-dek {
  color: #eaf4f2;
  max-width: 710px;
  margin: 0;
  font: 20px/1.55 Georgia, serif;
}
.jr-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.jr-avatar {
  border: 1px solid #76cfc3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 11px;
  font-weight: 700;
}
.jr-byline b,
.jr-byline small {
  display: block;
}
.jr-byline b {
  font-size: 13px;
}
.jr-byline small {
  color: #bddbd6;
  margin-top: 4px;
  font-size: 11px;
}

/* Article shell */
.jr-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 680px) 210px;
  gap: 54px;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 85px 0 110px;
}
.jr-toc {
  border-top: 2px solid var(--jr-primary);
  align-self: start;
  padding-top: 18px;
  position: sticky;
  top: 24px;
}
.jr-toc > p {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jr-primary);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
}
.jr-toc > a {
  color: #6d7b79;
  border-left: 1px solid var(--jr-border);
  padding: 8px 0 8px 15px;
  font-size: 12px;
  display: block;
  text-decoration: none;
}
.jr-toc > a.current {
  color: var(--jr-primary);
  border-left: 3px solid var(--jr-bright);
  font-weight: 700;
}
.jr-share {
  color: #7b8886;
  border-top: 1px solid var(--jr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 18px;
  font-size: 11px;
}
.jr-share button {
  color: var(--jr-primary);
  cursor: pointer;
  background: none;
  border: 0;
  font-weight: 700;
  font-size: 11px;
}
.jr-article {
  font: 17px/1.82 Georgia, serif;
  color: var(--jr-ink);
}
.jr-article p {
  margin: 0 0 24px;
}
.jr-article a {
  color: var(--jr-primary);
  text-decoration: underline;
  text-decoration-color: var(--jr-bright);
  text-underline-offset: 3px;
}
.jr-lead {
  color: var(--jr-primary);
  font-size: 25px;
  line-height: 1.5;
}
.jr-article h2 {
  color: var(--jr-primary);
  letter-spacing: -0.03em;
  margin: 74px 0 28px;
  scroll-margin-top: 32px;
  font: 500 38px/1.15 Georgia, serif;
}
.jr-pull {
  background: #e5f5f1;
  margin: 52px 0;
  padding: 34px 40px 34px 70px;
  position: relative;
}
.jr-pull span {
  color: #00a890;
  font: 72px Georgia, serif;
  position: absolute;
  top: 4px;
  left: 25px;
}
.jr-pull p {
  color: var(--jr-primary);
  margin: 0;
  font: italic 25px/1.45 Georgia, serif;
}
.jr-question {
  border-top: 1px solid var(--jr-border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 26px 0;
}
.jr-question > b {
  color: #00a890;
  font: 16px Georgia, serif;
}
.jr-question h3 {
  color: var(--jr-primary);
  margin: 0 0 10px;
  font: 500 23px Georgia, serif;
}
.jr-question p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.jr-table-wrap {
  border-top: 3px solid var(--jr-primary);
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jr-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font: 13px/1.5 Arial, sans-serif;
}
.jr-table-wrap th,
.jr-table-wrap td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--jr-border);
  vertical-align: top;
}
.jr-table-wrap th {
  color: var(--jr-primary);
  background: #f2f8f6;
  font-weight: 700;
}
.jr-table-wrap td a {
  text-decoration: none;
  font-weight: 700;
}
.jr-note {
  color: #75817f;
  font: italic 12px Arial, sans-serif;
  margin-top: 10px !important;
}
.jr-browse {
  color: #fff !important;
  background: var(--jr-primary);
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 55px;
  padding: 17px 20px;
  font: 700 13px Arial, sans-serif;
  text-decoration: none !important;
}
.jr-browse span {
  color: var(--jr-accent);
  font-size: 18px;
}
.jr-faq {
  border-top: 1px solid var(--jr-border);
}
.jr-faq:last-of-type {
  border-bottom: 1px solid var(--jr-border);
}
.jr-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--jr-primary);
  font: 500 21px/1.3 Georgia, serif;
}
.jr-faq summary::-webkit-details-marker {
  display: none;
}
.jr-faq summary::after {
  content: "+";
  color: #00a890;
  font-weight: 700;
}
.jr-faq[open] summary::after {
  content: "\2013";
}
.jr-faq__answer {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
}
.jr-faq__answer p:last-child {
  margin-bottom: 0;
}
.jr-side-card {
  color: #fff;
  background: var(--jr-primary);
  border-radius: 3px;
  align-self: start;
  padding: 26px 24px;
  position: sticky;
  top: 24px;
}
.jr-side-card .jr-eyebrow {
  color: var(--jr-bright);
}
.jr-side-card h3 {
  margin: 12px 0;
  font: 28px/1.1 Georgia, serif;
  color: #fff;
}
.jr-side-card > p:not(.jr-eyebrow) {
  color: #c9dfdc;
  font-size: 13px;
  line-height: 1.55;
}
.jr-side-card > a {
  color: #133e38;
  background: var(--jr-accent);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  box-sizing: border-box;
}

/* Archive strip under the article */
.jr-archive {
  background: #edf6f3;
  padding: 90px max(24px, 50vw - 590px) 100px;
}
.jr-archive__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
}
.jr-archive__head h2 {
  color: var(--jr-primary);
  letter-spacing: -0.035em;
  margin: 10px 0 0;
  font: 500 clamp(34px, 5vw, 54px) Georgia, serif;
}
.jr-archive__head > p {
  color: #5f706d;
  font: 16px Georgia, serif;
  margin: 0;
}

@media (max-width: 1080px) {
  .jr-shell {
    grid-template-columns: 1fr 190px;
  }
  .jr-toc {
    display: none;
  }
  .jr-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .jr-hub__intro {
    padding: 65px 22px 45px;
  }
  .jr-featured {
    width: calc(100% - 36px);
    padding: 45px 0 65px;
    display: block;
  }
  .jr-featured__image {
    min-height: 310px;
  }
  .jr-featured__copy {
    padding: 38px 28px;
  }
  .jr-all__title,
  .jr-archive__head {
    display: block;
  }
  .jr-all__title > p,
  .jr-archive__head > p {
    margin-top: 14px;
  }
  .jr-archive__grid {
    grid-template-columns: 1fr;
  }
  .jr-hero {
    min-height: 580px;
  }
  .jr-hero__content {
    padding-bottom: 48px;
  }
  .jr-crumb {
    margin-bottom: 80px;
  }
  .jr-hero h1 {
    font-size: 52px;
  }
  .jr-dek {
    font-size: 18px;
  }
  .jr-shell {
    width: min(100% - 36px, 680px);
    padding: 55px 0 75px;
    display: block;
  }
  .jr-side-card {
    margin-top: 60px;
    position: relative;
  }
  .jr-article h2 {
    font-size: 33px;
  }
  .jr-lead {
    font-size: 22px;
  }
  .jr-pull {
    padding: 30px 25px 30px 55px;
  }
  .jr-pull p {
    font-size: 21px;
  }
}
