/* =========================================================
   Daily Finance Space — Main Stylesheet
   Editorial style. Palette: Ink + Paper + Mustard + Cobalt
   ========================================================= */
:root {
  --ink: #141414;
  --ink-2: #2b2b2b;
  --paper: #faf6ee;
  --paper-2: #f2ecdf;
  --mustard: #f4b400;
  --mustard-soft: #fff1c2;
  --cobalt: #2541b2;
  --cobalt-soft: #e6eafb;
  --text: #3d3a35;
  --muted: #7a746a;
  --rule: #141414;
  --hard: 6px 6px 0 #141414;
  --hard-sm: 4px 4px 0 #141414;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: "DM Serif Display", Georgia, serif; color: var(--ink); font-weight: 400; line-height: 1.15; }
a { color: var(--cobalt); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
.block { padding: 90px 0; }
.block-sm { padding: 60px 0; }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: rgba(255,255,255,.78); }
.bg-ink h2, .bg-ink h3, .bg-ink h4, .bg-ink h5 { color: #fff; }
.bg-mustard { background: var(--mustard); }
.bg-white { background: #fff !important; }
.mark { background: var(--mustard); padding: 0 6px; color: var(--ink); }
.u-line { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 6px; text-underline-offset: 2px; }

/* ---------- Logo: one line, one style ---------- */
.dfs-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "DM Serif Display", serif; font-size: 1.65rem; color: var(--ink); line-height: 1; letter-spacing: -.2px; }
.dfs-logo:hover { color: var(--ink); }
.dfs-logo .cal { width: 40px; height: 40px; flex-shrink: 0; border: 2px solid var(--ink); background: var(--mustard); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.dfs-logo.on-ink { color: #fff; }
.dfs-logo.on-ink:hover { color: #fff; }
.dfs-logo.on-ink .cal { border-color: #fff; box-shadow: 3px 3px 0 #fff; }

/* ---------- Dateline + header ---------- */
.dateline { background: var(--ink); color: rgba(255,255,255,.8); font-size: .86rem; padding: 7px 0; letter-spacing: .3px; }
.dateline a { color: var(--mustard); }
.dateline a:hover { color: #fff; }
.dateline .dl-sep { margin: 0 12px; opacity: .4; }
.dfs-header { position: sticky; top: 0; z-index: 1030; background: var(--paper); border-bottom: 3px double var(--rule); transition: box-shadow .3s ease; }
.dfs-header.scrolled { box-shadow: 0 6px 0 rgba(20,20,20,.06); }
.dfs-header .navbar { padding: 14px 0; }
.dfs-header .nav-link { font-weight: 700; color: var(--ink) !important; padding: 6px 14px !important; text-transform: uppercase; font-size: .86rem; letter-spacing: 1px; border: 2px solid transparent; }
.dfs-header .nav-link:hover { border-color: var(--ink); }
.dfs-header .nav-link.active { background: var(--ink); color: var(--mustard) !important; border-color: var(--ink); }
.dfs-header .navbar-toggler { border: 2px solid var(--ink); border-radius: 0; color: var(--ink); font-size: 1.4rem; padding: 2px 10px; background: var(--mustard); }
.dfs-header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) { .dfs-header .navbar-collapse { padding: 14px 0 4px; } .dfs-header .nav-link { margin-bottom: 4px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 0; font-weight: 700; padding: 12px 26px; border: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .8px; font-size: .9rem; transition: transform .15s ease, box-shadow .15s ease, background .2s ease; }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-mustard { background: var(--mustard); color: var(--ink); box-shadow: var(--hard-sm); }
.btn-mustard:hover, .btn-mustard:focus { background: var(--mustard); color: var(--ink); border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--mustard); }
.btn-ink:hover, .btn-ink:focus { background: var(--ink); color: var(--mustard); border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--mustard); }
.btn-paper { background: #fff; color: var(--ink); box-shadow: var(--hard-sm); }
.btn-paper:hover { background: var(--cobalt); color: #fff; border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: var(--hard-sm); }
.btn-cobalt:hover, .btn-cobalt:focus { background: var(--cobalt); color: #fff; border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.bg-ink .btn-mustard { border-color: var(--mustard); box-shadow: 4px 4px 0 #fff; }

/* ---------- Section heads ---------- */
.kick { display: inline-block; background: var(--ink); color: var(--mustard); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; font-size: .74rem; padding: 4px 12px; margin-bottom: 16px; }
.bg-ink .kick { background: var(--mustard); color: var(--ink); }
.headline { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 16px; }
.dek { font-size: 1.1rem; max-width: 640px; }
.text-center .dek { margin-inline: auto; }
.rule-title { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.rule-title h2 { margin: 0; white-space: nowrap; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.rule-title::after { content: ""; flex: 1; border-top: 3px double var(--rule); }
.bg-ink .rule-title::after { border-color: rgba(255,255,255,.4); }
@media (max-width: 575.98px) { .rule-title h2 { white-space: normal; } }

/* ---------- Hero / masthead ---------- */
.masthead { padding: 60px 0 70px; border-bottom: 3px double var(--rule); position: relative; }
.masthead h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -1px; }
.masthead .lede { font-size: 1.2rem; max-width: 560px; margin: 20px 0 30px; }
.masthead .byline { font-size: .86rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; display: inline-block; margin-bottom: 26px; }
.hero-photo { border: 2px solid var(--ink); box-shadow: var(--hard); position: relative; background: var(--paper-2); }
.hero-photo img { width: 100%; height: 300px; object-fit: cover; display: block; }
.tip-card { background: var(--mustard); border: 2px solid var(--ink); box-shadow: var(--hard); padding: 26px 26px 22px; margin-top: 28px; position: relative; }
.tip-card .tc-label { position: absolute; top: -14px; left: 20px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; }
.tip-card h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.tip-card p { margin: 0 0 12px; color: var(--ink); }
.tip-card .tc-nav { display: flex; justify-content: space-between; align-items: center; }
.tip-card .tc-nav button { border: 2px solid var(--ink); background: #fff; width: 38px; height: 38px; font-size: 1rem; transition: background .2s ease; }
.tip-card .tc-nav button:hover { background: var(--ink); color: var(--mustard); }
.tip-card .tc-nav small { font-weight: 700; color: var(--ink); }
.headlines-strip { border-bottom: 2px solid var(--rule); background: #fff; }
.headlines-strip .hs-item { padding: 18px 16px; border-right: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); height: 100%; }
.headlines-strip .col-6:last-child .hs-item, .headlines-strip .col-lg-3:last-child .hs-item { border-right: none; }
.headlines-strip .hs-item i { font-size: 1.4rem; color: var(--cobalt); }
@media (max-width: 991.98px) { .headlines-strip .hs-item { border-right: none; border-bottom: 1px solid var(--rule); } }

/* ---------- Service cards ---------- */
.svc-paper { background: #fff; border: 2px solid var(--ink); box-shadow: var(--hard); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.svc-paper:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.svc-paper .sp-img { height: 210px; border-bottom: 2px solid var(--ink); overflow: hidden; position: relative; background: var(--paper-2); }
.svc-paper .sp-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .5s ease; }
.svc-paper:hover .sp-img img { transform: scale(1.05); }
.svc-paper .sp-tag { position: absolute; top: 14px; left: 14px; background: var(--mustard); border: 2px solid var(--ink); font-weight: 800; font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; color: var(--ink); }
.svc-paper .sp-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.svc-paper h3 { font-size: 1.65rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.svc-paper h3 i { font-size: 1.3rem; color: var(--cobalt); }
.svc-paper p { flex-grow: 1; }
.svc-paper .btn { align-self: flex-start; }

/* ---------- About / editorial ---------- */
.editorial p.drop::first-letter { float: left; font-family: "DM Serif Display", serif; font-size: 4.6rem; line-height: .85; padding: 6px 12px 0 0; color: var(--cobalt); }
.photo-stack { position: relative; }
.photo-stack img { width: 100%; height: 440px; object-fit: cover; border: 2px solid var(--ink); box-shadow: var(--hard); display: block; background: var(--paper-2); }
.photo-stack .caption { font-size: .88rem; font-style: italic; color: var(--muted); border-left: 3px solid var(--mustard); padding-left: 10px; margin-top: 16px; }
.pull-quote { font-family: "DM Serif Display", serif; font-size: 1.6rem; color: var(--ink); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 18px 0; margin: 26px 0; line-height: 1.35; }
.pull-quote::before { content: "\201C"; color: var(--mustard); font-size: 3rem; line-height: 0; vertical-align: -18px; margin-right: 6px; }
.note-list { list-style: none; padding: 0; margin: 18px 0; }
.note-list li { padding: 10px 0 10px 34px; border-bottom: 1px dashed rgba(20,20,20,.25); position: relative; font-weight: 600; color: var(--ink); }
.note-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; background: var(--mustard); border: 2px solid var(--ink); font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.bg-ink .note-list li { color: #fff; border-color: rgba(255,255,255,.2); }

/* ---------- Daily habit calculator ---------- */
.habit-box { background: #fff; border: 2px solid var(--ink); box-shadow: var(--hard); }
.habit-box .hb-head { background: var(--cobalt); color: #fff; padding: 16px 26px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.habit-box .hb-head h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.habit-box .hb-body { padding: 28px 26px; }
.habit-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.habit-presets button { border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: .88rem; padding: 6px 12px; transition: all .15s ease; }
.habit-presets button:hover, .habit-presets button.active { background: var(--mustard); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px,-1px); }
.habit-box label { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 6px; display: block; }
.habit-result { background: var(--mustard-soft); border: 2px dashed var(--ink); padding: 20px 22px; margin-top: 22px; }
.habit-result .hr-big { font-family: "DM Serif Display", serif; font-size: 2.6rem; color: var(--ink); line-height: 1.1; }
.habit-result .hr-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(20,20,20,.2); padding-top: 8px; margin-top: 8px; font-size: .95rem; }

/* ---------- Checklist ---------- */
.checklist { background: var(--paper); border: 2px solid #fff; padding: 26px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.25); cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.bg-ink .checklist { background: transparent; }
.check-item input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border: 2px solid #fff; flex-shrink: 0; margin-top: 2px; cursor: pointer; display: grid; place-content: center; background: transparent; }
.check-item input::before { content: "\2713"; color: var(--ink); font-weight: 900; font-size: 1rem; transform: scale(0); transition: transform .15s ease; }
.check-item input:checked { background: var(--mustard); border-color: var(--mustard); }
.check-item input:checked::before { transform: scale(1); }
.check-item input:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.check-item strong { display: block; color: #fff; font-size: 1.05rem; }
.check-item span { color: rgba(255,255,255,.7); font-size: .95rem; }
.check-item input:checked ~ div strong { text-decoration: line-through; text-decoration-color: var(--mustard); }
.check-status { font-weight: 700; color: var(--mustard); margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.check-status button { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .82rem; padding: 4px 12px; }
.check-status button:hover { background: #fff; color: var(--ink); }

/* ---------- How it works ---------- */
.col-step { border-left: 2px solid var(--ink); padding: 6px 0 6px 22px; height: 100%; }
.col-step .cs-n { font-family: "DM Serif Display", serif; font-size: 3.4rem; color: var(--cobalt); line-height: 1; }
.col-step h3 { font-size: 1.45rem; margin: 6px 0 8px; }

/* ---------- Letters (testimonials) ---------- */
.letter { background: #fff; border: 2px solid var(--ink); padding: 28px 26px 22px; height: 100%; position: relative; display: flex; flex-direction: column; }
.letter.tilt-l { transform: rotate(-1deg); }
.letter.tilt-r { transform: rotate(1deg); }
.letter .l-head { font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; display: flex; justify-content: space-between; }
.letter .l-head .stars { color: var(--mustard); letter-spacing: 2px; -webkit-text-stroke: .5px var(--ink); }
.letter p { font-family: "DM Serif Display", serif; font-size: 1.22rem; color: var(--ink); line-height: 1.5; flex-grow: 1; }
.letter .l-sign { font-weight: 800; color: var(--cobalt); font-size: 1.05rem; margin: 0; }
.letter .l-sign::before { content: "\2014 "; }
.letter .pin { position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt); border: 2px solid var(--ink); transform: translateX(-50%); }

/* ---------- Blog: newspaper layout ---------- */
.lead-story { border: 2px solid var(--ink); background: #fff; height: 100%; display: flex; flex-direction: column; }
.lead-story .ls-img { display: block; height: 340px; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.lead-story .ls-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lead-story:hover .ls-img img { transform: scale(1.04); }
.lead-story .ls-body { padding: 28px; flex-grow: 1; }
.lead-story h3 { font-size: 2.1rem; }
.lead-story h3 a, .side-story h3 a, .news-card h3 a { color: var(--ink); background-image: linear-gradient(var(--mustard), var(--mustard)); background-size: 0 40%; background-position: 0 85%; background-repeat: no-repeat; transition: background-size .35s ease; }
.lead-story h3 a:hover, .side-story h3 a:hover, .news-card h3 a:hover { background-size: 100% 40%; color: var(--ink); }
.side-story { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 24px; display: flex; gap: 18px; }
.side-story:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.side-story .ss-img { width: 150px; height: 130px; flex-shrink: 0; border: 2px solid var(--ink); overflow: hidden; background: var(--paper-2); }
.side-story .ss-img img { width: 100%; height: 100%; object-fit: cover; }
.side-story h3 { font-size: 1.35rem; }
.read-link { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px; }
.read-link:hover { color: var(--ink); }
.read-link i { transition: transform .2s ease; }
.read-link:hover i { transform: translateX(4px); }
@media (max-width: 575.98px) { .side-story { flex-direction: column; } .side-story .ss-img { width: 100%; height: 180px; } }

.news-card { border: 2px solid var(--ink); background: #fff; box-shadow: var(--hard); height: 100%; display: flex; flex-direction: column; }
.news-card .nc-img { height: 220px; border-bottom: 2px solid var(--ink); overflow: hidden; display: block; background: var(--paper-2); }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .nc-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card .nc-kick { font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; color: var(--cobalt); margin-bottom: 8px; }
.news-card h3 { font-size: 1.5rem; }
.news-card p { flex-grow: 1; }

/* Single article */
.article-top { border-bottom: 3px double var(--rule); padding: 56px 0 40px; }
.article-top h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 980px; letter-spacing: -.5px; }
.article-top .dek { font-size: 1.25rem; margin-top: 16px; font-style: italic; }
.article-img { border: 2px solid var(--ink); box-shadow: var(--hard); width: 100%; height: 460px; object-fit: cover; display: block; background: var(--paper-2); }
.takeaways { background: var(--cobalt-soft); border: 2px solid var(--ink); padding: 22px 24px; margin-bottom: 34px; }
.takeaways h4 { font-size: 1.3rem; margin-bottom: 10px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin-bottom: 6px; }
.article-body { font-size: 1.12rem; }
.article-body p { margin-bottom: 22px; }
.article-body > p:first-of-type::first-letter { float: left; font-family: "DM Serif Display", serif; font-size: 4.4rem; line-height: .85; padding: 6px 12px 0 0; color: var(--cobalt); }
.article-body h2 { font-size: 2rem; margin: 40px 0 14px; padding-top: 14px; border-top: 2px solid var(--ink); }
.article-body .boxout { border: 2px solid var(--ink); background: var(--mustard); padding: 24px 26px; margin: 34px 0; box-shadow: var(--hard-sm); font-family: "DM Serif Display", serif; font-size: 1.4rem; color: var(--ink); line-height: 1.4; }
.side-rail { position: sticky; top: 110px; }
.rail-box { border: 2px solid var(--ink); background: #fff; padding: 22px; margin-bottom: 24px; }
.rail-box h4 { font-size: 1.3rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.rail-box.ink { background: var(--ink); color: rgba(255,255,255,.8); }
.rail-box.ink h4 { color: #fff; border-color: var(--mustard); }
.rail-link { display: block; padding: 10px 0; border-bottom: 1px dashed rgba(20,20,20,.25); color: var(--ink); font-weight: 700; line-height: 1.35; }
.rail-link:last-child { border-bottom: none; }
.rail-link:hover { color: var(--cobalt); }
.article-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 3px double var(--rule); border-bottom: 3px double var(--rule); padding: 18px 0; margin-top: 40px; }

/* ---------- Page masthead ---------- */
.page-mast { padding: 60px 0 50px; border-bottom: 3px double var(--rule); background: var(--paper); position: relative; overflow: hidden; }
.page-mast::after { content: ""; position: absolute; right: -40px; top: 30px; width: 240px; height: 240px; background: var(--mustard); border: 2px solid var(--ink); transform: rotate(12deg); z-index: 0; opacity: .9; }
.page-mast .container { position: relative; z-index: 1; }
.page-mast h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -1px; max-width: 800px; }
.page-mast p { font-size: 1.15rem; max-width: 600px; margin: 14px 0 0; }
.trail-line { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; }
.trail-line li { color: var(--muted); }
.trail-line li a { color: var(--cobalt); }
.trail-line li + li::before { content: "/"; margin-right: 6px; color: var(--ink); }
@media (max-width: 767.98px) { .page-mast::after { width: 140px; height: 140px; right: -60px; top: 10px; } }

/* ---------- Contact ---------- */
.form-sheet { background: #fff; border: 2px solid var(--ink); box-shadow: var(--hard); padding: 40px; }
.classified { border: 2px solid var(--ink); background: #fff; padding: 20px 22px; margin-bottom: 18px; position: relative; }
.classified .cl-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; background: var(--mustard); border: 2px solid var(--ink); display: inline-block; padding: 2px 10px; margin-bottom: 10px; color: var(--ink); }
.classified p, .classified a { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.classified a:hover { color: var(--cobalt); }
.classified i { position: absolute; right: 18px; top: 18px; font-size: 1.5rem; color: var(--cobalt); }
.map-frame { border: 2px solid var(--ink); box-shadow: var(--hard); }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }

/* ---------- Forms ---------- */
.form-label { font-weight: 800; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control, .form-select { border-radius: 0; border: 2px solid var(--ink); padding: 11px 14px; background-color: var(--paper); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--ink); background-color: #fff; box-shadow: 4px 4px 0 var(--mustard); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #c62828; }
.form-check-input { border-radius: 0 !important; border: 2px solid var(--ink); }
.form-check-input:checked { background-color: var(--cobalt); border-color: var(--ink); }
.form-alert { display: none; border-radius: 0; margin-top: 18px; border: 2px solid var(--ink); }
.form-alert.show { display: block; }

/* ---------- Newsletter coupon ---------- */
.coupon { background: #fff; border: 3px dashed var(--ink); padding: 14px; position: relative; }
.coupon::before { content: "\2702"; position: absolute; top: -18px; left: 40px; background: var(--paper); padding: 0 8px; font-size: 1.4rem; color: var(--ink); }
.coupon-inner { background: var(--mustard-soft); border: 2px solid var(--ink); padding: 40px 38px; }
.coupon-inner.cool { background: var(--cobalt-soft); }
.coupon .cp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; }
.coupon .cp-head h2 { margin: 0; font-size: 2.2rem; }
.coupon .cp-stamp { border: 2px solid var(--cobalt); color: var(--cobalt); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; padding: 6px 12px; transform: rotate(-6deg); }
.inbox-list { list-style: none; padding: 0; margin: 0; }
.inbox-list li { border: 2px solid var(--ink); background: #fff; padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 3px 3px 0 var(--ink); }
.inbox-list li i { font-size: 1.4rem; color: var(--cobalt); }
.inbox-list li strong { display: block; color: var(--ink); font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.15rem; }

/* ---------- Legal ---------- */
.contents-box { border: 2px solid var(--ink); background: #fff; padding: 24px 26px; margin-bottom: 40px; box-shadow: var(--hard-sm); }
.contents-box h4 { font-size: 1.4rem; margin-bottom: 12px; }
.contents-box ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; }
.contents-box li { margin-bottom: 6px; break-inside: avoid; }
.contents-box a { color: var(--ink); font-weight: 600; }
.contents-box a:hover { color: var(--cobalt); }
@media (max-width: 575.98px) { .contents-box ol { columns: 1; } }
.doc-section { padding: 26px 0; border-top: 2px solid var(--ink); scroll-margin-top: 110px; }
.doc-section h2 { font-size: 1.8rem; margin-bottom: 12px; display: flex; gap: 14px; align-items: baseline; }
.doc-section h2 .num { font-family: "Source Sans 3", sans-serif; font-weight: 800; font-size: .95rem; background: var(--ink); color: var(--mustard); padding: 2px 9px; }

/* ---------- Values ---------- */
.value-box { border: 2px solid var(--ink); background: #fff; padding: 28px; height: 100%; box-shadow: var(--hard-sm); }
.value-box .vb-ico { width: 54px; height: 54px; border: 2px solid var(--ink); background: var(--mustard); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; color: var(--ink); }
.value-box h3 { font-size: 1.5rem; }
.value-box.cobalt { background: var(--cobalt); color: rgba(255,255,255,.85); }
.value-box.cobalt h3 { color: #fff; }

/* ---------- FAQ ---------- */
.faq-news .accordion-item { border: 2px solid var(--ink); border-radius: 0 !important; margin-bottom: 12px; background: #fff; }
.faq-news .accordion-button { font-family: "DM Serif Display", serif; font-size: 1.2rem; color: var(--ink); background: #fff; box-shadow: none; border-radius: 0 !important; }
.faq-news .accordion-button:not(.collapsed) { background: var(--mustard); color: var(--ink); }
.faq-news .accordion-button:focus { box-shadow: none; }
.faq-news .accordion-button::after { filter: grayscale(1) brightness(0); }

/* ---------- Brief CTA ---------- */
.brief { background: var(--cobalt); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 54px 50px; color: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.brief::after { content: "DAILY"; position: absolute; right: -20px; bottom: -40px; font-family: "DM Serif Display", serif; font-size: 10rem; color: rgba(255,255,255,.07); line-height: 1; pointer-events: none; }
.brief h2 { color: #fff; }
.brief .kick { background: var(--mustard); color: var(--ink); }
.brief-field { display: flex; gap: 0; border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.brief-field .form-control { border: none; background: #fff; }
.brief-field .form-control:focus { box-shadow: none; }
.brief-field .btn { border: none; border-left: 2px solid var(--ink); box-shadow: none; }
.brief-field .btn:hover { transform: none; box-shadow: none; }
.brief .invalid-feedback { color: var(--mustard); font-weight: 700; }
.brief > .row { position: relative; z-index: 2; }
@media (max-width: 575.98px) { .brief { padding: 38px 22px; box-shadow: 6px 6px 0 var(--ink); } .brief-field { flex-direction: column; } .brief-field .btn { border-left: none; border-top: 2px solid var(--ink); } }

/* ---------- Footer ---------- */
.dfs-footer { background: var(--ink); color: rgba(255,255,255,.68); border-top: 6px solid var(--mustard); }
.dfs-footer .ft-main { padding: 70px 0 40px; }
.dfs-footer h5 { color: var(--mustard); font-family: "Source Sans 3", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .84rem; margin-bottom: 20px; }
.dfs-footer a { color: rgba(255,255,255,.75); }
.dfs-footer a:hover { color: var(--mustard); }
.ft-ul { list-style: none; padding: 0; margin: 0; }
.ft-ul li { margin-bottom: 10px; }
.ft-addr li { display: flex; gap: 12px; margin-bottom: 14px; }
.ft-addr i { color: var(--mustard); margin-top: 3px; }
.ft-soc { display: flex; gap: 8px; margin-top: 22px; }
.ft-soc a { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: #fff; }
.ft-soc a:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.ft-news .form-control { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; }
.ft-news .form-control::placeholder { color: rgba(255,255,255,.45); }
.ft-news .form-control:focus { box-shadow: 4px 4px 0 var(--mustard); background: transparent; color: #fff; border-color: #fff; }
.ft-news .btn { border-color: var(--mustard); box-shadow: none; }
.ft-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; }
.ft-bar a { margin-left: 18px; }

/* Back to top */
.dfs-top { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 50px; height: 50px; border: 2px solid var(--ink); background: var(--mustard); color: var(--ink); font-size: 1.2rem; box-shadow: var(--hard-sm); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; }
.dfs-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.letter.tilt-l.reveal.visible { transform: rotate(-1deg); }
.letter.tilt-r.reveal.visible { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .block { padding: 70px 0; }
  .side-rail { position: static; }
  .form-sheet { padding: 28px 20px; }
  .lead-story .ls-img { height: 260px; }
}
@media (max-width: 767.98px) {
  .coupon-inner { padding: 28px 18px; }
  .article-img { height: 280px; }
  .photo-stack img { height: 320px; }
  .ft-bar a { margin: 0 8px; }
}
@media (max-width: 575.98px) {
  .dfs-logo { font-size: 1.3rem; }
  .dfs-logo .cal { width: 34px; height: 34px; font-size: .95rem; }
  .letter.tilt-l, .letter.tilt-r, .letter.tilt-l.reveal.visible, .letter.tilt-r.reveal.visible { transform: none; }
}
