/* Yaparım Ama Nasıl — theme styles. Brand colors come from the logo: navy ink, blue, orange. */

:root {
  --ink: #15213b;
  --ink-2: #3d4963;
  --muted: #637089;
  --line: #e3e7ef;
  --line-2: #d3d9e4;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --brand: #1b6bc0;
  --brand-ink: #14589f;
  --brand-soft: #e8f1fb;
  --accent: #f39a1f;
  --accent-soft: #fff4e3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 33, 59, .06), 0 4px 16px rgba(21, 33, 59, .06);
  --wrap: 1160px;
  --read: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;

  /* Category accents — fixed order, keyed by category id. */
  --t0: #1b6bc0; --t0s: #e8f1fb;
  --t1: #187a50; --t1s: #e6f5ee;
  --t2: #c2410c; --t2s: #fdeee6;
  --t3: #7c3aed; --t3s: #f1ebfd;
  --t4: #0e7490; --t4s: #e3f4f7;
  --t5: #b45309; --t5s: #fdf3e2;
  --t6: #be185d; --t6s: #fce8f1;
  --t7: #4d7c0f; --t7s: #eef6e2;
}

.tone-0 { --tone: var(--t0); --tone-s: var(--t0s); }
.tone-1 { --tone: var(--t1); --tone-s: var(--t1s); }
.tone-2 { --tone: var(--t2); --tone-s: var(--t2s); }
.tone-3 { --tone: var(--t3); --tone-s: var(--t3s); }
.tone-4 { --tone: var(--t4); --tone-s: var(--t4s); }
.tone-5 { --tone: var(--t5); --tone-s: var(--t5s); }
.tone-6 { --tone: var(--t6); --tone-s: var(--t6s); }
.tone-7 { --tone: var(--t7); --tone-s: var(--t7s); }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__list > li > a, .nav__trigger { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav__list > li > a:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: var(--bg-soft); color: var(--ink); }
.nav__trigger .icon { transition: transform .15s; }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__cats { position: relative; }
.mega { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: min(560px, 90vw); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(21, 33, 59, .14); padding: 10px; }
.nav__trigger[aria-expanded="true"] + .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; }
.mega__grid a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.mega__grid a:hover { background: var(--bg-soft); }
.mega__n { margin-left: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--brand)); flex: none; }

.nav__search { position: relative; margin-left: auto; width: 260px; }
.nav__search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.nav__search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-soft); }
.nav__search input:focus { background: var(--bg); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .site-header__in { gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 16px; overflow-y: auto; border-top: 1px solid var(--line); }
  .admin-bar .nav { top: calc(var(--header-h) + 46px); }
  .nav.is-open { display: flex; }
  .nav__search { order: -1; width: 100%; margin: 0 0 12px; }
  .nav__search input { height: 48px; font-size: 1rem; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li > a, .nav__trigger { height: 52px; width: 100%; font-size: 1.05rem; padding: 0 8px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .mega { position: static; width: auto; border: 0; box-shadow: none; padding: 4px 0 8px; display: block; }
  .nav__trigger { pointer-events: none; }
  .nav__trigger .icon { display: none; }
  .mega__grid a { padding: 10px 8px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- shared chips / cards / sections ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.chips--left { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip__n { color: var(--muted); font-size: .82rem; }

.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-top: 24px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; }
.section__head h2 { font-size: 1.45rem; font-weight: 800; }
.section__head p { color: var(--muted); }
.section__more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--rows { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px 24px; }
@media (max-width: 640px) {
  .grid--3, .grid--rows { grid-template-columns: 1fr; gap: 0; }
  /* Phones: grid cards collapse to compact rows so a list of 12 stays scannable. */
  .grid--3 .card { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 0; overflow: visible; }
  .grid--3 .card:hover { box-shadow: none; }
  .grid--3 .card__media { width: 104px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); }
  .grid--3 .card__body { padding: 0 0 0 14px; gap: 4px; }
  .grid--3 .card__title { font-size: 1rem; }
  .grid--3 .card__meta { margin-top: 2px; }
}

.card { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tone-s), var(--bg-soft)); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--brand); }
.card__meta { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.kicker { position: relative; z-index: 1; align-self: flex-start; color: var(--tone, var(--brand)); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.kicker:hover { color: var(--ink); }

.card--row { flex-direction: row; align-items: center; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); padding: 12px 0; overflow: visible; }
.card--row:hover { box-shadow: none; }
.card--row .card__media { width: 112px; flex: none; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--row .card__body { padding: 0 0 0 16px; gap: 4px; }
.card--row .card__title { font-size: 1rem; }

.empty { padding: 32px 0; color: var(--ink-2); display: grid; gap: 16px; }

/* ---------- front page ---------- */

.hero { background: linear-gradient(180deg, var(--brand-soft), var(--bg) 85%); padding: 56px 0 44px; text-align: center; }
.hero__in { max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.hero__lead { max-width: 600px; margin: 14px auto 28px; color: var(--ink-2); font-size: 1.1rem; }
.hero__search { position: relative; display: flex; align-items: center; max-width: 640px; margin: 0 auto 24px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.hero__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.hero__search .icon { margin: 0 4px 0 14px; color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 1.08rem; padding: 0 8px; }
.hero__search input:focus { outline: none; }
.hero__search .btn { height: 48px; padding: 0 26px; }
@media (max-width: 520px) { .hero { padding: 36px 0 32px; } .hero__search .btn { padding: 0 16px; } .hero__search .icon { display: none; } .hero__search input { padding-left: 14px; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; list-style: none; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--tone); text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.cat-tile:hover { box-shadow: var(--shadow); color: var(--ink); }
.cat-tile__name { font-weight: 700; font-size: 1.08rem; }
.cat-tile__desc { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.cat-tile__n { margin-top: auto; padding-top: 4px; color: var(--tone); font-size: .85rem; font-weight: 600; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; }
.tool-link { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tool-link .icon { color: var(--accent); }
.tool-link:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- breadcrumbs & archive head ---------- */

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

.archive-head { padding: 28px 0 8px; background: linear-gradient(180deg, var(--tone-s, var(--bg-soft)), var(--bg)); }
.archive-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.archive-head__desc { max-width: 760px; margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }
.archive-head__n { margin: 10px 0 16px; color: var(--muted); font-size: .9rem; }
.archive-head .search-form { margin-top: 16px; max-width: 640px; }

.search-form { position: relative; display: flex; gap: 8px; }
.search-form .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 1rem; }
.search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-form .btn { height: 48px; }

.pager { margin-top: 32px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pager .dots { border: 0; min-width: 24px; padding: 0; }

/* ---------- single post ---------- */

.layout { display: grid; grid-template-columns: minmax(0, var(--read)) 300px; justify-content: center; gap: 56px; padding-top: 28px; padding-bottom: 48px; }
@media (max-width: 1080px) { .layout { grid-template-columns: minmax(0, var(--read)); } .sidebar { display: none; } }

.article__head h1 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article__media { margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry { font-size: 1.1rem; line-height: 1.75; color: #1d2940; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.1em; }
.entry > :first-child { margin-top: 24px; }
.entry h2 { margin-top: 2em; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.entry h3 { margin-top: 1.8em; font-size: 1.28rem; font-weight: 700; }
.entry h4 { margin-top: 1.5em; font-size: 1.1rem; font-weight: 700; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .45em; }
.entry li::marker { color: var(--brand); }
.entry strong { color: var(--ink); }
.entry a { font-weight: 500; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.entry img { border-radius: var(--radius-sm); }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry th { background: var(--bg-soft); }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* "İçindekiler" box that every post carries in its content. */
:is(.entry, .tool-body) .icy-toc { margin: 28px 0; padding: 18px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
:is(.entry, .tool-body) .icy-toc-title { margin: 0 0 8px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:is(.entry, .tool-body) .icy-toc-title strong { color: inherit; font-weight: 700; }
:is(.entry, .tool-body) .icy-toc-list { margin: 0; padding-left: 1.2em; font-size: 1rem; line-height: 1.5; }
:is(.entry, .tool-body) .icy-toc-list li + li { margin-top: 6px; }
:is(.entry, .tool-body) .icy-toc-link { color: var(--ink-2); text-decoration: none; font-weight: 500; }
:is(.entry, .tool-body) .icy-toc-link:hover { color: var(--brand); text-decoration: underline; }

/* FAQ: an h3 "Sıkça Sorulan Sorular" followed by h4 question / p answer pairs. */
.entry h3.faq-title { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 1.45rem; font-weight: 800; }
.entry h3.faq-title ~ h4 { margin-top: 1.3em; padding: 14px 18px 0; background: var(--bg-soft); border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: 1.05rem; }
.entry h3.faq-title ~ h4 + p { margin-top: 0; padding: 6px 18px 16px; background: var(--bg-soft); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 1rem; color: var(--ink-2); }

.note { margin-top: 40px; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); color: #5b3b06; font-size: .95rem; line-height: 1.6; }
.note strong { display: block; color: #4a3005; margin-bottom: 2px; }
.note a { color: #7a4a00; font-weight: 600; }

.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.side-box h2 { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-list { list-style: none; counter-reset: side; display: grid; gap: 12px; }
.side-list li { counter-increment: side; display: grid; grid-template-columns: 22px 1fr; font-size: .95rem; line-height: 1.4; }
.side-list li::before { content: counter(side); color: var(--accent); font-weight: 800; }
.side-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.side-list a:hover { color: var(--brand); }
.side-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.side-tools { list-style: none; display: grid; gap: 4px; }
.side-tools a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.side-tools .icon { color: var(--accent); }
.side-tools a:hover { color: var(--brand); }

/* ---------- pages ---------- */

.page-narrow { max-width: calc(var(--read) + 48px); padding-top: 28px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.page-tool { max-width: calc(var(--read) + 48px); padding-top: 20px; padding-bottom: 48px; }
.tool-body { font-size: 1.05rem; line-height: 1.7; color: #1d2940; overflow-wrap: break-word; }
.tool-body > p, .tool-body > ul, .tool-body > ol { margin-top: 1em; }
.tool-body h3 { font-size: 1.15rem; margin-top: 1.3em; }
.tool-body ul, .tool-body ol { padding-left: 1.4em; }
/* Result tiles: the tools' own CSS also boxes the inner number/label divs; keep a single box. */
.tool-body .yam-result-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important; }
.tool-body .yam-result-grid div div { border: 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important; }
.tool-body .yam-result-grid .yam-num { white-space: nowrap; font-size: clamp(1rem, 4.2vw, 1.15rem) !important; }
.tool-body .yam-card { padding: 20px; }
@media (max-width: 520px) { .tool-body .yam-card { padding: 16px; } .tool-body .yam-result-grid > div { padding: 12px 6px !important; } .tool-body .yam-tabs { flex-wrap: wrap; } }
/* Tool pages ship their own styles; give their controls the site's type and focus treatment. */
.tool-body h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.tool-body h2 { font-size: 1.3rem; margin-top: 1.4em; }
.tool-body .yam-tool, .tool-body .yam-hub { font-family: var(--font) !important; }
.tool-body button, .tool-body input, .tool-body select, .tool-body textarea { font-family: var(--font); }
/* Let inputs shrink inside the tools' flex rows (e.g. password field + copy button). */
.tool-body input, .tool-body select, .tool-body textarea { min-width: 0; max-width: 100%; }

.contact-form { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.contact-form h2 { font-size: 1.3rem; margin-bottom: 16px; }
.wpcf7 p { margin-bottom: 14px; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); font-size: 1rem; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.wpcf7 textarea { height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--brand-ink); }

.notfound { text-align: center; display: grid; gap: 18px; justify-items: center; }
.notfound__code { font-size: 4.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.notfound .search-form { width: 100%; max-width: 560px; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #c4cbdb; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c4cbdb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about p { margin-top: 14px; max-width: 360px; line-height: 1.6; }
.brand--footer, .brand--footer:hover { color: #fff; }
.brand--footer img { width: 32px; height: 32px; }
.site-footer__base { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8f9ab2; }

/* Auto ads: keep injected units from touching text. */
.entry .google-auto-placed { margin: 28px 0 !important; }

/* Phone overrides for front-page sections (kept last so they win over the base rules). */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 14px 14px 12px; }
  .cat-tile__desc { display: none; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tool-link { font-size: .88rem; padding: 10px 12px; }
  .tool-link .icon { display: none; }
  .hero .chips li:nth-child(n+7) { display: none; }

}
