/* ==========================================================================
   Letters of Kindness: styles added on top of the theme (assets/style.css).
   Everything here is prefixed lok- so it cannot disturb the theme's own rules.
   ========================================================================== */

/* ---- Navigation (all pages) ---- */
.lok-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.lok-nav .logo img { height: 58px; width: auto; }
.lok-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.lok-nav-links > a:not(.butn) { font-weight: 500; }
.lok-nav-links > a:not(.butn):hover { color: var(--color-green1); }

.lok-nav-toggle { display: none; }

/* Phones and tablets: logo and a Menu button on one row; the links open below. */
@media (max-width: 1199px) {
  .lok-nav.lok-nav-folds { flex-wrap: wrap; row-gap: 0; padding-bottom: 18px; }
  .lok-nav-folds .lok-nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 1px solid #b9beab; border-radius: 999px;
    background: #fff; color: #222; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .lok-nav-folds .lok-nav-toggle:hover, .lok-nav-folds.is-open .lok-nav-toggle { border-color: var(--color-green1); color: var(--color-green1); }
  .lok-nav-folds .lok-nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 16px; border-top: 1px solid #e3e6da; }
  .lok-nav-folds.is-open .lok-nav-links { display: flex; }
  .lok-nav-folds .lok-nav-links > a:not(.butn) { padding: 15px 2px; border-bottom: 1px solid #e3e6da; font-size: 17px; }
  .lok-nav-folds .lok-nav-links > a.lok-lang-switch { border-width: 0 0 1px; border-radius: 0; background: none; }
  .lok-nav-folds .lok-nav-links > a.butn { margin-top: 18px; text-align: center; }
}
/* Small laptops: tighten the row so the longer French labels still fit on one line. */
@media (min-width: 1200px) and (max-width: 1359px) {
  .lok-nav { column-gap: 16px; padding-left: 3vw; padding-right: 3vw; }
  .lok-nav-links { column-gap: 18px; }
  .lok-nav-links > a:not(.butn) { font-size: 15px; }
}
@media (max-width: 575px) {
  .lok-nav { padding-left: 20px; padding-right: 20px; }
  .lok-nav .logo img { height: 46px; }
  .lok-nav-links { gap: 10px 20px; }

  /* Homepage: a headline that leaves room for the three buttons on the first screen. */
  .tc-header-style7 { padding-top: 34px; }
  .tc-header-style7 h1 { font-size: 44px; line-height: 1.12; }
  .tc-header-style7 .head-features { margin-top: 18px; }
  .tc-header-style7 .head-features p { font-size: 18px; line-height: 1.5; margin-top: 0; }
  .tc-header-style7 .head-features p + p { display: none; }   /* the two short taglines repeat the first line */
  .lok-hero-actions { margin-top: 24px; gap: 10px; }
  .lok-hero-actions .butn { flex: 1 1 100%; text-align: center; }
}

/* ---- Search among the letters ---- */
.lok-search { max-width: 560px; margin: 30px 0 0; }
.lok-search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lok-search-row { display: flex; gap: 10px; }
.lok-search-row input { flex: 1 1 auto; min-width: 0; padding: 11px 16px; border: 1px solid #bbb; border-radius: 999px; font-size: 16px; background: #fff; }
.lok-search-row input:focus { outline: none; border-color: var(--color-green1); box-shadow: 0 0 0 3px rgba(104, 146, 16, .2); }
.lok-search-row button { padding: 11px 24px; border: 1px solid var(--color-green1); border-radius: 999px; background: #fff; color: var(--color-green1); font-size: 15px; font-weight: 600; cursor: pointer; }
.lok-search-row button:hover { background: var(--color-green1); color: #fff; }
.lok-search-found { margin: 12px 0 0; font-size: 15px; color: #444; }
.lok-search-found a { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.lok-search + .lok-filter { margin-top: 24px; }
.lok-lost { max-width: 640px; margin-top: 56px; padding-top: 32px; border-top: 1px solid #dfe3d2; }
.lok-lost h2 { font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.lok-lost > p { font-size: 16px; line-height: 1.6; color: #444; }
.lok-lost .lok-search { margin-top: 20px; }
.lok-lost .lok-field-help { margin-top: 16px; }

/* ---- Inner pages ---- */
.lok-page { padding: 60px 0 110px; }
.lok-page-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.lok-page-intro {
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 20px;
}
.lok-back { text-decoration: underline; text-underline-offset: 3px; }
.lok-back:hover { color: var(--color-green1); }

/* ---- Paper look for a letter (was inline in header.php) ---- */
.paper-background {
  background: url('img/home7/paper_bg.jpg') center center / cover no-repeat;
  border-radius: 16px;
  border: 1px solid #ccc;
  font-family: 'Instrument Serif', serif;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-height: 300px;
  font-size: 20px;
  line-height: 1.6;
}

/* ---- Letter list ---- */
.lok-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 32px; }
.lok-filter a {
  padding: 8px 20px;
  border: 1px solid #9996;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.lok-filter a:hover { border-color: var(--color-green1); color: var(--color-green1); }
.lok-filter a.is-current { background: var(--color-green1); border-color: var(--color-green1); color: #fff; }

.lok-letter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.lok-letter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.lok-letter-card:hover { border-color: var(--color-green1); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.lok-letter-meta { font-size: 13px; letter-spacing: .04em; color: #666; font-family: 'Inter', sans-serif; }
.lok-letter-subject { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.2; color: #111; }
.lok-letter-excerpt { font-size: 15px; line-height: 1.6; color: #444; flex: 1; }
.lok-letter-more { font-size: 14px; font-weight: 600; color: var(--color-green1); }

.lok-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  font-size: 15px;
}
.lok-pager a { text-decoration: underline; text-underline-offset: 3px; }
.lok-pager span { color: #666; }
.lok-empty { font-size: 18px; margin: 30px 0; }
.lok-empty a { text-decoration: underline; }

.lok-cta { margin-top: 70px; text-align: center; }
.lok-cta p { font-size: 20px; margin-bottom: 22px; }

/* ---- Single letter ---- */
.lok-letter { max-width: 760px; margin: 24px auto 0; padding: clamp(24px, 5vw, 56px); }
.lok-letter h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; font-weight: 400; margin: 10px 0 24px; }
.lok-letter-body { font-size: 22px; line-height: 1.6; overflow-wrap: anywhere; }
#letter-display-content { overflow-wrap: anywhere; }

/* ---- Send form ---- */
.lok-form-wrap { max-width: 720px; margin-top: 36px; }
body ul.lok-guidance { margin: 0 0 32px; padding: 20px 24px 20px 42px; background: #f4f6ee; border-radius: 12px; list-style-type: disc; }
.lok-guidance li { margin-bottom: 6px; font-size: 15px; line-height: 1.55; }
.lok-guidance li:last-child { margin-bottom: 0; }
.lok-form .form-label { font-weight: 600; }
.lok-form .form-control, .lok-form .form-select { padding: 12px 14px; border-color: #bbb; font-size: 16px; }
.lok-form .form-control:focus, .lok-form .form-select:focus {
  border-color: var(--color-green1);
  box-shadow: 0 0 0 3px rgba(104, 146, 16, .2);
}
.lok-optional { font-weight: 400; color: #666; }
.lok-field-help { font-size: 14px; color: #555; margin-top: 6px; }
.lok-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.lok-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-green1); }
.lok-check a { text-decoration: underline; }
.lok-errors { margin-bottom: 28px; padding: 18px 22px; border: 1px solid #c0392b; border-radius: 12px; background: #fdf1ef; color: #7a1f14; }
.lok-errors p { font-weight: 600; margin-bottom: 6px; color: inherit; }
body .lok-errors ul { padding-left: 20px; list-style-type: disc; margin: 0; }
/* Spam trap: kept out of sight for people, still present for bots. */
.lok-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Thank you ---- */
.lok-thanks-icon { width: 90px; margin-bottom: 24px; }
.lok-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-top: 36px; }

/* ---- Policy pages ---- */
.lok-prose { max-width: 720px; }
.lok-prose h2 { font-size: 28px; font-weight: 500; margin: 44px 0 14px; }
.lok-prose h3 { font-size: 19px; font-weight: 600; margin: 26px 0 10px; }
.lok-prose p, .lok-prose li { font-size: 17px; line-height: 1.7; color: #222; }
.lok-prose p { margin-bottom: 14px; }
body .lok-prose ul { list-style-type: disc; padding-left: 22px; margin-bottom: 16px; }
.lok-prose li { margin-bottom: 6px; }
.lok-prose a { text-decoration: underline; text-underline-offset: 3px; }
.lok-prose a:hover { color: var(--color-green1); }
.lok-updated { color: #666; font-size: 15px !important; }

/* ---- Footer additions ---- */
.lok-help { margin-top: 24px; font-size: 14px; line-height: 1.6; max-width: 460px; opacity: .85; }
.lok-help a { text-decoration: underline; }

/* ---- Cookie choice ---- */
.lok-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  font-size: 14px;
  line-height: 1.5;
}
.lok-cookie[hidden] { display: none; }
.lok-cookie p { margin: 0 0 14px; color: inherit; }
.lok-cookie a { text-decoration: underline; }
.lok-cookie-actions { display: flex; justify-content: flex-end; gap: 10px; }
.lok-cookie button {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #999;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lok-cookie button.lok-cookie-yes { background: var(--color-green1); border-color: var(--color-green1); color: #fff; }

/* ---- Keyboard focus, everywhere ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-green1);
  outline-offset: 2px;
}

/* ---- Homepage letter cards: date above the subject ---- */
.letter-title { display: block; height: 100%; }
.letter-title .project-card { display: block; }
.letter-title .project-card h6 { color: #666; letter-spacing: .04em; }
.letter-title:hover .project-card { border-color: var(--color-green1) !important; }

/* ---- Discreet link to the review page ---- */
.lok-admin-link { margin-top: 10px; font-size: 13px; opacity: .7; }
.lok-admin-link a { text-decoration: underline; }

/* ---- Homepage hero buttons ---- */
.lok-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 10px; position: relative; z-index: 2; }

/* ---- "This letter helped me" ---- */
.lok-letter-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 760px; margin: 0 auto; }
.lok-letter-top span { color: #666; font-size: 15px; }
.lok-helped { max-width: 760px; margin: 36px auto 0; text-align: center; }
.lok-helped-count { font-size: 17px; color: #444; margin-bottom: 16px; }
.lok-helped-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--color-green1);
  border-radius: 999px;
  background: var(--color-green1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lok-helped-button:hover { background: #557a0b; border-color: #557a0b; }
.lok-helped-button:disabled { opacity: .6; cursor: default; }
.lok-helped-thanks { font-family: 'Instrument Serif', serif; font-size: 24px; line-height: 1.4; color: #333; max-width: 520px; margin: 0 auto; }
.lok-helped [hidden] { display: none; }

/* The optional note offered after pressing the button */
.lok-note { max-width: 520px; margin: 26px auto 0; padding: 24px 26px; background: #f7f8f2; border: 1px solid #dfe3d2; border-radius: 14px; text-align: left; }
.lok-note-intro { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 14px; }
.lok-note-label { display: block; font-size: 14px; font-weight: 600; color: #333; margin: 14px 0 6px; }
.lok-note-label span { font-weight: 400; color: #666; }
.lok-note textarea, .lok-note input[type=text], .lok-note input[type=email] {
  display: block; width: 100%; padding: 11px 13px; border: 1px solid #bbb; border-radius: 8px; background: #fff; font-size: 16px; line-height: 1.5; color: #222;
}
.lok-note textarea { resize: vertical; min-height: 92px; }
.lok-note textarea:focus, .lok-note input:focus { outline: none; border-color: var(--color-green1); box-shadow: 0 0 0 3px rgba(104, 146, 16, .2); }
.lok-note-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lok-note-help { font-size: 13px; line-height: 1.55; color: #555; margin: 14px 0 0; }
.lok-note-help a { text-decoration: underline; text-underline-offset: 3px; }
.lok-note-error { margin: 0 0 4px; padding: 10px 14px; border: 1px solid #c0392b; border-radius: 8px; background: #fdf1ef; color: #7a1f14; font-size: 14px; }
.lok-note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.lok-note-send { padding: 11px 26px; border: 1px solid var(--color-green1); border-radius: 999px; background: var(--color-green1); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.lok-note-send:hover { background: #557a0b; border-color: #557a0b; }
.lok-note-send:disabled { opacity: .6; cursor: default; }
.lok-note-skip { padding: 0; border: 0; background: none; color: #555; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lok-note-skip:hover { color: #222; }
.lok-note-done { margin: 18px auto 0; font-size: 16px; color: #444; }
@media (max-width: 520px) { .lok-note { padding: 20px 18px; } .lok-note-pair { grid-template-columns: 1fr; } }

/* Notes passed on to a writer, on their private page */
.lok-notes { max-width: 760px; margin: 40px auto 0; }
.lok-notes > h2 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.lok-notes > p { font-size: 15px; color: #555; margin-bottom: 20px; }
.lok-reader-note { margin: 0 0 14px; padding: 18px 24px; background: #fff; border: 1px solid #dfe3d2; border-radius: 12px; }
.lok-reader-note blockquote { margin: 0; font-family: 'Instrument Serif', serif; font-size: 21px; line-height: 1.5; color: #333; overflow-wrap: anywhere; }
.lok-reader-note footer { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: #666; }

.lok-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.lok-letter-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.lok-letter-helped { font-size: 13px; color: #666; }

/* ---- Theme filter and theme tags ---- */
.lok-filter-first { margin-bottom: 12px; }
.lok-filter-themes { margin-top: 0; }
.lok-filter-themes a { font-size: 14px; padding: 6px 16px; }
.lok-themes { max-width: 760px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lok-themes a { padding: 5px 14px; border: 1px solid #9996; border-radius: 999px; font-size: 13px; color: #444; }
.lok-themes a:hover { border-color: var(--color-green1); color: var(--color-green1); }

/* ---- Replies ---- */
.lok-in-reply { margin-top: 6px; }
.lok-replies { max-width: 760px; margin: 64px auto 0; }
.lok-replies > h2 { font-size: 26px; font-weight: 500; margin-bottom: 20px; }
.lok-reply { padding: 24px 28px; margin-bottom: 18px; background: #f7f8f2; border-left: 4px solid var(--color-green1); border-radius: 0 12px 12px 0; }
.lok-reply h3 { font-family: 'Instrument Serif', serif; font-size: 26px; font-weight: 400; line-height: 1.2; margin: 6px 0 12px; }
.lok-reply-body { font-family: 'Instrument Serif', serif; font-size: 20px; line-height: 1.6; color: #333; overflow-wrap: anywhere; }

/* ---- Writer's private link and page ---- */
.lok-private { max-width: 620px; margin: 44px auto 0; padding: 28px; background: #f4f6ee; border-radius: 14px; text-align: left; }
.lok-private h2 { font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.lok-private p { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.lok-private p:last-child { margin-bottom: 0; }
.lok-private-row { display: flex; gap: 10px; margin-bottom: 14px; }
.lok-private-row input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #bbb; border-radius: 8px; font-size: 14px; background: #fff; }
.lok-private-row button { padding: 0 22px; border: 1px solid var(--color-green1); border-radius: 8px; background: var(--color-green1); color: #fff; font-weight: 600; cursor: pointer; }
.lok-private-note { font-size: 14px !important; color: #555; }
.lok-status { max-width: 760px; margin: 28px auto 0; padding: 22px 26px; background: #f4f6ee; border-radius: 14px; }
.lok-status-line { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.lok-status-line:last-child { margin-bottom: 0; }
.lok-letter h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 400; margin: 10px 0 24px; }

/* ---- Buttons under the letter opened on the homepage ---- */
#letter-display-actions .lok-helped { margin-top: 32px; }
.lok-cta-inline { margin-top: 28px; }
/* The decorative curve of the next section overlaps the bottom of this one and
   would swallow clicks meant for the buttons under an open letter. */
.tc-proccess-style7 .curve { pointer-events: none; }
#letter-display-actions { position: relative; z-index: 5; }

/* ---- Ways to keep the private link ---- */
.lok-private-save { display: grid; gap: 12px; margin-bottom: 18px; }
.lok-private-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid #cfd4c2; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; margin: 0; }
.lok-private-option:hover { border-color: var(--color-green1); }
a.lok-private-option { flex-direction: column; gap: 2px; }
.lok-private-option strong { display: block; color: #111; }
.lok-private-option span span, a.lok-private-option > span { color: #555; font-size: 14px; }
.lok-private-option input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-green1); }
.lok-private-option[hidden] { display: none; }

.lok-device { max-width: 760px; margin: 20px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: #555; }
.lok-device[hidden] { display: none; }
.lok-device button, .lok-remembered button { padding: 5px 14px; border: 1px solid #9aa08a; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.lok-device button:hover, .lok-remembered button:hover { border-color: var(--color-green1); color: var(--color-green1); }
.lok-remembered { max-width: 640px; margin: 8px 0 36px; padding: 22px 26px; background: #f4f6ee; border-radius: 14px; }
.lok-remembered[hidden] { display: none; }
.lok-remembered h2 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
body .lok-remembered ul { display: grid; gap: 10px; }
.lok-remembered li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 16px; }
.lok-remembered li span { color: #666; font-size: 14px; }
.lok-remembered li button { margin-left: auto; }

/* ==========================================================================
   Replacements for libraries the pages no longer load
   ========================================================================== */

/* ---- The two reveal animations the homepage uses (was animate.css, 79 KB) ---- */
.animated { animation-duration: 1s; animation-fill-mode: both; }
.animated.slow { animation-duration: 2s; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.fadeInUp { animation-name: fadeInUp; }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(0.8, 0.8, 0.8); } 50% { opacity: 1; } }
.zoomIn { animation-name: zoomIn; }
@media (prefers-reduced-motion: reduce) {
  .animated { animation: none !important; }
}

/* ---- Plus and minus on the "How It Works" steps (was an icon font, 500 KB) ---- */
.tc-proccess-style7 .accordion-item .accordion-button::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  width: auto;
  height: auto;
}
.tc-proccess-style7 .accordion-item .accordion-button:not(.collapsed)::after { content: "\2212"; }

/* ---- Back-to-top arrow ---- */
.to_top svg { display: block; }

/* ---- "Ask for a letter" ---- */
.lok-urgent { margin: 0 0 20px; padding: 18px 22px; border: 1px solid #d9b25a; border-radius: 12px; background: #fdf6e3; font-size: 15px; line-height: 1.6; color: #4a3b12; }
.lok-urgent strong { display: block; margin-bottom: 4px; color: #3a2e0c; }
.lok-urgent a { text-decoration: underline; }
.lok-small-intro { font-size: 16px; color: #555; }

.lok-request-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #f7f8f2; border: 1px solid #dfe3d2; border-left: 4px solid var(--color-green1); border-radius: 0 12px 12px 0; }
.lok-request-text { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.4; color: #222; flex: 1; overflow-wrap: anywhere; }
.lok-request-write { font-size: 14px; font-weight: 600; color: var(--color-green1); text-decoration: underline; text-underline-offset: 3px; }
a.lok-letter-helped { text-decoration: underline; text-underline-offset: 3px; }

.lok-request { max-width: 760px; margin: 24px auto 0; padding: clamp(24px, 4vw, 44px); background: #f7f8f2; border-left: 5px solid var(--color-green1); border-radius: 0 16px 16px 0; }
.lok-request blockquote, .lok-request-quote { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.4; color: #222; margin: 10px 0 0; overflow-wrap: anywhere; }
.lok-request-quote { max-width: 720px; margin: 0 0 24px; padding: 20px 26px; background: #f7f8f2; border-left: 5px solid var(--color-green1); border-radius: 0 14px 14px 0; font-size: clamp(21px, 2.6vw, 27px); }
.lok-reply h3 a:hover { color: var(--color-green1); }
.lok-reply-link { margin: 14px 0 0; font-size: 15px; color: #555; }

.lok-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dfe3d2; font-size: 14px; color: #555; }
.lok-status-form button { padding: 7px 18px; border: 1px solid #9aa08a; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.lok-status-form button:hover { border-color: var(--color-green1); color: var(--color-green1); }
.lok-help-inline { max-width: 760px; margin: 40px auto 0; font-size: 14px; line-height: 1.6; color: #555; }
.lok-help-inline a { text-decoration: underline; }

.lok-asking { padding: 20px 0 110px; position: relative; z-index: 2; }
.lok-asking-foot { margin-top: 28px; font-size: 17px; }
.lok-asking-empty { max-width: 640px; }

/* ---- Language switch (English / Français) ---- */
.lok-lang-switch { font-size: 14px; font-weight: 600; padding: 6px 14px; border: 1px solid #c9cfba; border-radius: 999px; color: #333; }
.lok-lang-switch:hover { border-color: var(--color-green1); color: var(--color-green1); }
.lok-admin-link a + a { margin-left: 2px; }

/* French headings and buttons keep sentence case: "Une lettre peut changer une vie". */
html[lang="fr"] .text-capitalize,
html[lang="fr"] .tc-header-style7 h1,
html[lang="fr"] h1, html[lang="fr"] h2, html[lang="fr"] .butn span { text-transform: none !important; }
html[lang="fr"] .butn.text-uppercase span { text-transform: uppercase !important; }
.lok-request-lang { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #666; }

/* ---- Theme pages and the Christmas page ---- */
.lok-theme-top { margin: 0 0 18px; max-width: none; }
.lok-theme-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.lok-theme-all { margin-top: 26px; font-size: 17px; }
.lok-theme-asking, .lok-theme-others { margin-top: 70px; }
.lok-theme-asking-first { margin-top: 20px; }
.lok-theme-asking h2, .lok-theme-others h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; margin-bottom: 12px; }
.lok-theme-asking .lok-small-intro { max-width: 640px; margin-bottom: 26px; }
.lok-theme-asking h2 + .lok-letter-list { margin-top: 26px; }
.lok-theme-others .lok-themes, .lok-home-themes .lok-themes { max-width: none; margin: 16px 0 0; gap: 10px; }
.lok-theme-others .lok-themes a, .lok-home-themes .lok-themes a { padding: 8px 18px; font-size: 15px; background: #fff; }
.lok-help-left { margin-left: 0; margin-top: 60px; max-width: 640px; }

/* ---- Homepage: themes under the latest letters, and the Christmas line ---- */
.lok-home-themes { margin-top: 44px; padding-bottom: 50px; }
.lok-home-themes h3 { font-size: 24px; font-weight: 400; }
.lok-season { margin: 0; background: #f1f4e4; border-bottom: 1px solid #dfe3d2; text-align: center; font-size: 15px; position: relative; z-index: 3; }
.lok-season a { display: block; padding: 10px 20px; color: #3d5607; font-weight: 600; }
.lok-season a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- "Share this letter" ---- */
.lok-share { max-width: 760px; margin: 44px auto 0; padding-top: 30px; border-top: 1px solid #dfe3d2; text-align: center; }
.lok-share [hidden] { display: none; }
.lok-share-intro { font-size: 17px; color: #444; margin-bottom: 14px; }
.lok-share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lok-share-button { display: inline-block; padding: 10px 22px; border: 1px solid #9aa08a; border-radius: 999px; background: #fff; color: #333; font-size: 15px; font-weight: 600; cursor: pointer; }
.lok-share-button:hover { border-color: var(--color-green1); color: var(--color-green1); }
.lok-share-button:disabled { opacity: .6; cursor: default; }
.lok-share-status { margin: 14px 0 0; font-size: 15px; color: #444; }
.lok-share-preview { margin-top: 24px; }
.lok-share-preview img { display: block; width: min(100%, 340px); height: auto; margin: 0 auto 16px; border: 1px solid #dfe3d2; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }

/* ---- Footer credit ---- */
.lok-credit { font-size: 13px; opacity: .75; margin-top: 6px; }
.lok-credit a { text-decoration: underline; text-underline-offset: 3px; }
