/*
Theme Name: Art Crochet Patterns
Theme URI: https://artcrochetpatterns.com/
Description: Crochet pattern ideas, stitch guides and beginner lessons. Ball band design cards, hook converter and blanket planner.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: artcrochetpatterns
License: GPL-2.0-or-later
*/

@font-face { font-family: "DynaPuff"; font-weight: 500; font-display: swap; src: url(assets/fonts/dynapuff-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DynaPuff"; font-weight: 600; font-display: swap; src: url(assets/fonts/dynapuff-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "DynaPuff"; font-weight: 700; font-display: swap; src: url(assets/fonts/dynapuff-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Maven Pro"; font-weight: 400; font-display: swap; src: url(assets/fonts/maven-pro-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Maven Pro"; font-weight: 500; font-display: swap; src: url(assets/fonts/maven-pro-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Maven Pro"; font-weight: 700; font-display: swap; src: url(assets/fonts/maven-pro-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu Sans Mono"; font-weight: 500; font-display: swap; src: url(assets/fonts/ubuntu-sans-mono-latin-500-normal.woff2) format("woff2"); }

:root {
	--ink: #2a1a3d;
	--ink-2: #3b2655;
	--berry: #d6336c;
	--berry-d: #b02455;
	--mari: #f2a93b;
	--sage: #7fa37a;
	--bg: #fbf9fe;
	--card: #ffffff;
	--line: #e9e2f1;
	--text: #2a2433;
	--muted: #675e73;
	--st: #d6336c;
	--sh: #f8d9e3;
	--r: 22px;
	--shadow: 0 1px 2px rgba(42, 26, 61, .06), 0 10px 30px -12px rgba(42, 26, 61, .22);
	--display: "DynaPuff", "Trebuchet MS", system-ui, sans-serif;
	--sans: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Ubuntu Sans Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.18; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--mari); outline-offset: 2px; border-radius: 6px; }
.ac-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ac-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.ac-skip:focus { left: 12px; }

/* ------------------------------------------------------------------ header */
.ac-top { position: sticky; top: 0; z-index: 40; background: rgba(42, 26, 61, .96); backdrop-filter: saturate(140%) blur(10px); color: #fff; }
.ac-top-row { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.ac-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.ac-logo img { width: 40px; height: 40px; }
.ac-word { font: 600 21px/1 var(--display); letter-spacing: -.01em; color: #fff; }
.ac-word b { font-weight: 700; color: var(--mari); }
.ac-word i { font-style: normal; font-weight: 500; color: #f7c4d6; }
.ac-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.ac-nav a { position: relative; color: #efe7f7; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 11px; border-radius: 999px; transition: background .2s; }
.ac-nav a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.ac-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ac-hooklink { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: var(--mari); text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; }
.ac-hooklink span { font: 500 12px var(--mono); background: var(--ink); color: var(--mari); border-radius: 6px; padding: 1px 5px; }
.ac-hooklink:hover { color: var(--ink); background: #ffc46a; }
.ac-menubtn { display: none; align-items: center; gap: 9px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font: 600 15px var(--sans); cursor: pointer; }
.ac-menubtn-bars, .ac-menubtn-bars::before, .ac-menubtn-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.ac-menubtn-bars::before { position: absolute; top: -5px; }
.ac-menubtn-bars::after { position: absolute; top: 5px; }
.ac-drawer { background: var(--ink-2); padding: 14px 0 20px; }
.ac-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ac-drawer-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; border-left: 5px solid var(--st, var(--mari)); }
.ac-drawer-list b { font-family: var(--display); font-weight: 600; }
.ac-drawer-list span { font-size: 13px; color: #d9cde6; }
@media (max-width: 1080px) { .ac-nav { display: none; } .ac-menubtn { display: inline-flex; } .ac-hooklink { margin-left: auto; } }
@media (max-width: 520px) { .ac-hooklink { display: none; } .ac-menubtn { margin-left: auto; } .ac-word { font-size: 18px; } .ac-logo img { width: 34px; height: 34px; } }

/* -------------------------------------------------------------------- hero */
.ac-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 72px;
	background: radial-gradient(900px 420px at 85% 10%, rgba(214, 51, 108, .45), transparent 60%), radial-gradient(700px 380px at 5% 100%, rgba(242, 169, 59, .28), transparent 60%), var(--ink); }
.ac-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.4px, transparent 1.8px); background-size: 22px 22px; pointer-events: none; }
.ac-hero-yarn { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 160px; fill: none; stroke: var(--mari); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 14; opacity: .55; }
.ac-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.ac-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 14px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #ffd7a1; }
.ac-eyebrow span { width: 26px; height: 26px; border-radius: 50%; background: repeating-linear-gradient(35deg, var(--berry) 0 4px, #ef6f9a 4px 7px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.ac-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); margin: 0 0 16px; font-weight: 700; }
.ac-hero-lede { font-size: 19px; color: #e8def3; max-width: 36em; margin: 0 0 26px; }
.ac-hero-sections { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.ac-hero-sections a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; font-weight: 500; border: 1px solid rgba(255, 255, 255, .14); }
.ac-hero-sections i { width: 18px; height: 18px; border-radius: 50%; background: repeating-linear-gradient(40deg, var(--st) 0 3px, var(--sh) 3px 5px); }
.ac-hero-sections b { font: 500 13px var(--mono); color: #ffd7a1; }
.ac-hero-sections a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 900px) { .ac-hero-grid { grid-template-columns: 1fr; gap: 30px; } .ac-hero { padding: 36px 0 60px; } }

/* ------------------------------------------------------------------- tools */
.ac-tool { background: var(--card); color: var(--text); border-radius: 26px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.ac-tool--hero { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); border: 0; }
.ac-tool h2, .ac-tool .ac-tool-h { font: 600 22px/1.2 var(--display); color: var(--ink); margin: 0 0 4px; }
.ac-tool-sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.ac-gauge { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin: 0 0 16px; padding: 12px; border-radius: 18px; background: var(--ink); }
.ac-gauge button { aspect-ratio: 1; border: 0; border-radius: 50%; background: #f3eefa; color: var(--ink); font: 600 12px var(--mono); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(42, 26, 61, .15); transition: transform .15s, background .15s; }
.ac-gauge button:hover { transform: translateY(-2px); }
.ac-gauge button[aria-pressed="true"] { background: var(--mari); box-shadow: 0 0 0 3px #fff inset; }
.ac-tool label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.ac-tool select, .ac-tool input { width: 100%; font: 500 16px var(--sans); padding: 11px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); }
.ac-tool select:focus, .ac-tool input:focus { border-color: var(--berry); outline: 0; }
.ac-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ac-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.ac-out div { background: var(--bg); border-radius: 16px; padding: 10px 12px; border: 1px solid var(--line); }
.ac-out small { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-out b { display: block; font: 600 20px/1.25 var(--display); color: var(--ink); margin-top: 2px; }
.ac-out .ac-out-wide { grid-column: 1 / -1; }
.ac-tool-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 520px) { .ac-out { grid-template-columns: 1fr 1fr; } .ac-tool-row { grid-template-columns: 1fr; } .ac-tool { padding: 18px; } }

/* ------------------------------------------------------------------- cards */
.ac-picks { padding: 54px 0 10px; }
.ac-picks-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.ac-picks-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.ac-picks-head p { margin: 0; color: var(--muted); max-width: 32em; }
.ac-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ac-cards--small { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ac-card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.ac-card a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(42, 26, 61, .06), 0 22px 40px -18px rgba(42, 26, 61, .35); }
.ac-card-img { position: relative; aspect-ratio: 1; background: var(--sh); display: block; }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-kind { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 500 12px var(--mono); padding: 4px 9px; border-radius: 999px; }
.ac-card-band { position: relative; display: block; padding: 14px 16px 16px; border-top: 6px solid var(--st); background: linear-gradient(var(--card), var(--card)) padding-box; }
.ac-card-band::before { content: ""; position: absolute; left: 16px; top: -6px; width: 46px; height: 6px; background: repeating-linear-gradient(90deg, var(--sh) 0 6px, transparent 6px 10px); }
.ac-card-band b { display: block; font: 600 18px/1.25 var(--display); color: var(--ink); }
.ac-card-band small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 1000px) { .ac-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .ac-cards, .ac-cards--small { grid-template-columns: repeat(2, 1fr); gap: 12px; } .ac-card-band { padding: 11px 12px 13px; } .ac-card-band b { font-size: 15.5px; } }

/* --------------------------------------------------------------- page head */
.ac-pagehead { position: relative; overflow: hidden; padding: 30px 0 34px; background: var(--sh); }
.ac-pagehead::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: radial-gradient(ellipse 7px 4px at 50% 50%, transparent 54%, var(--st) 58%, var(--st) 72%, transparent 76%); background-size: 26px 16px; mask-image: linear-gradient(100deg, transparent 35%, #000 95%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 95%); }
.ac-pagehead--plain { background: #f1ecf7; }
.ac-pagehead--plain::before { display: none; }
.ac-pagehead-in { position: relative; }
.ac-pagehead h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 8px 0 10px; max-width: 22em; }
.ac-pagehead-short { font-size: 18.5px; margin: 0 0 14px; max-width: 40em; color: #3d3349; }
.ac-pagehead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13.5px; }
.ac-pagehead-meta a, .ac-pagehead-meta span { background: rgba(255, 255, 255, .78); padding: 4px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.ac-pagehead-meta a { background: var(--st); color: #fff; font-weight: 700; }
.ac-trail { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 7px; }
.ac-trail a { color: var(--ink); }

/* ----------------------------------------------------------------- article */
.ac-read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 34px 0 56px; }
.ac-read--narrow .ac-article { max-width: 760px; }
.ac-read--home { padding-top: 40px; }
.ac-article { min-width: 0; }
.ac-article > * { max-width: 820px; }
.ac-article .ac-designs, .ac-article .ac-key, .ac-article .ac-tool { max-width: none; }
.ac-article h2 { font-size: clamp(24px, 3vw, 31px); margin: 44px 0 14px; }
.ac-article h3 { font-size: 20px; margin: 26px 0 8px; }
.ac-article p { margin: 0 0 16px; }
.ac-article ul, .ac-article ol { padding-left: 1.3em; margin: 0 0 18px; }
.ac-article li { margin: 0 0 7px; }
.ac-article li::marker { color: var(--st); font-weight: 700; }
.ac-intro p:first-child { font-size: 19.5px; line-height: 1.6; color: #2f2639; }
.ac-table { overflow-x: auto; margin: 0 0 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.ac-article table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.ac-article th, .ac-article td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ac-article thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.ac-article tbody tr:nth-child(even) { background: #faf7fd; }
.ac-article caption { caption-side: bottom; padding: 8px 12px; font-size: 13px; color: var(--muted); text-align: left; }
.ac-article .note, .ac-article .tip { border-radius: 18px; padding: 14px 18px 14px 52px; margin: 0 0 20px; position: relative; }
.ac-article .note { background: #fff4e0; }
.ac-article .tip { background: #e8f4ea; }
.ac-article .note::before, .ac-article .tip::before { position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #fff; }
.ac-article .note::before { content: "i"; background: var(--mari); }
.ac-article .tip::before { content: "+"; background: var(--sage); }
.ac-article .note p:last-child, .ac-article .tip p:last-child { margin: 0; }

/* the written pattern: a pattern card with numbered round chips */
.ac-article .pattern { background: var(--card); border: 2px dashed var(--st); border-radius: 24px; padding: 20px 22px 12px; margin: 0 0 24px; box-shadow: var(--shadow); }
.ac-article .pattern ol { list-style: none; counter-reset: rnd; padding: 0; }
.ac-article .pattern li { counter-increment: rnd; position: relative; padding: 9px 0 9px 50px; margin: 0; border-bottom: 1px dotted var(--line); font: 500 15.5px/1.55 var(--mono); }
.ac-article .pattern li:last-child { border-bottom: 0; }
.ac-article .pattern li::before { content: counter(rnd); position: absolute; left: 0; top: 7px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sh); color: var(--ink); font: 600 14px var(--display); box-shadow: inset 0 0 0 2px var(--st); }
.ac-article .pattern p { font-size: 15.5px; }

/* at a glance: a yarn ball band */
.ac-key { display: grid; grid-template-columns: 54px 1fr; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 26px; }
.ac-key-h { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; display: grid; place-items: center; background: var(--st); color: #fff; font: 600 15px var(--display); letter-spacing: .08em; padding: 14px 0; }
.ac-key ul { list-style: none; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 18px; }
.ac-key li { margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ac-key-name { margin: 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-key-val { font-weight: 700; color: var(--ink); }

/* contents */
.ac-toc { background: var(--card); border-radius: 20px; padding: 16px 20px; border: 1px solid var(--line); margin: 0 0 10px; }
.ac-toc p { margin: 0 0 8px; font: 600 16px var(--display); color: var(--ink); }
.ac-toc ol { columns: 2; column-gap: 26px; margin: 0; padding-left: 1.2em; font-size: 15px; }
.ac-toc a { text-decoration: none; color: var(--text); }
.ac-toc a[aria-current="true"] { color: var(--berry-d); font-weight: 700; }
@media (max-width: 640px) { .ac-toc ol { columns: 1; } }

/* designs: ball band cards */
.ac-designs { margin: 8px 0 30px; }
.ac-designs-h { font-size: clamp(24px, 3vw, 31px); margin: 30px 0 6px; }
.ac-designs-sub { color: var(--muted); margin: 0 0 18px; }
.ac-designs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ac-design { margin: 0; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ac-design-img { position: relative; aspect-ratio: 1; background: var(--sh); }
.ac-design-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-design-no { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 15px var(--display); }
.ac-design figcaption { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ac-band { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -16px; background: var(--st); color: #fff; }
.ac-band span { padding: 8px 10px; font-size: 13px; line-height: 1.3; border-right: 1px solid rgba(255, 255, 255, .25); }
.ac-band span:last-child { border-right: 0; }
.ac-band small { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.ac-design-name { margin: 4px 0 0; font: 600 18px/1.25 var(--display); color: var(--ink); }
.ac-design-cap { margin: 0; font-size: 15px; }
.ac-design-note { margin: auto 0 0; font-size: 14px; background: var(--bg); border-radius: 14px; padding: 9px 12px; color: #463c52; }
.ac-design-note b { color: var(--st); }
@media (max-width: 1000px) { .ac-designs ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ac-designs ul { grid-template-columns: 1fr; } }
.ac-designs--steps ul { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .ac-designs--steps ul { grid-template-columns: 1fr; } }

/* faq */
.ac-faq details { background: var(--card); border-radius: 18px; margin: 0 0 10px; border: 1px solid var(--line); }
.ac-faq summary { cursor: pointer; padding: 15px 52px 15px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--sh); display: grid; place-items: center; font: 600 18px var(--display); color: var(--ink); transition: transform .2s; }
.ac-faq details[open] summary::after { transform: rotate(45deg); }
.ac-faq-a { padding: 0 18px 8px; }
.ac-ad { margin: 26px 0; text-align: center; }

/* related */
.ac-related h2 { font-size: 26px; margin: 0 0 16px; }

/* ----------------------------------------------------------------- indexes */
.ac-indexes { padding: 10px 0 60px; }
.ac-indexes-h { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 18px; }
.ac-index { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 20px 22px 10px; margin: 0 0 20px; }
.ac-index-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ac-index-head h2 { margin: 0; font-size: 23px; display: flex; align-items: center; gap: 10px; }
.ac-index-head small { font: 500 13px var(--mono); color: var(--muted); }
.ac-index-dot { width: 22px; height: 22px; border-radius: 50%; background: repeating-linear-gradient(40deg, var(--st) 0 4px, var(--sh) 4px 7px); }
.ac-filter input { font: 500 15px var(--sans); padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); width: min(260px, 100%); background: var(--bg); }
.ac-filter input:focus { outline: 0; border-color: var(--st); }
.ac-tablewrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.ac-index-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ac-index-table th, .ac-index-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ac-index-table thead th { position: sticky; top: 0; background: var(--card); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-index-table tbody th a { font-weight: 700; text-decoration: none; color: var(--ink); }
.ac-index-table tbody th a:hover { color: var(--st); }
.ac-index-table td { color: #4b4157; }
.ac-pill { display: inline-block; font: 500 12px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--sh); color: var(--ink); white-space: nowrap; }
.ac-pill--guide { background: #e6eef9; }
.ac-pill--tool { background: var(--mari); }
.ac-index-none { color: var(--muted); }
@media (max-width: 640px) { .ac-index-table thead th:nth-child(3), .ac-index-table td:nth-child(3) { display: none; } .ac-index { padding: 16px 14px 6px; } }

/* ---------------------------------------------------------------- footer */
.ac-foot { position: relative; background: var(--berry-d); color: #fde9f0; margin-top: 30px; }
.ac-foot-wave { position: absolute; left: 0; top: -47px; width: 100%; height: 48px; fill: var(--berry-d); }
.ac-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 34px; padding: 40px 0 26px; }
.ac-logo--foot { margin: 0 0 10px; }
.ac-foot-brand p { margin: 0 0 10px; max-width: 30em; }
.ac-foot-h { font: 600 17px var(--display); color: #fff; margin: 0 0 10px; }
.ac-foot ul { list-style: none; margin: 0; padding: 0; }
.ac-foot li { margin: 0 0 7px; }
.ac-foot-sections li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--st); margin-right: 8px; }
.ac-foot a { color: #fff; text-decoration: none; }
.ac-foot a:hover { text-decoration: underline; color: #fff; }
.ac-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0 24px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; }
@media (max-width: 760px) { .ac-foot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ------------------------------------------------------------- blog pages */
.ac-listpage { padding: 34px 0 60px; }
.ac-list-title h1 { font-size: clamp(30px, 4vw, 44px); }
.ac-postlist { display: grid; gap: 14px; }
.ac-postrow { background: var(--card); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); }
.ac-postrow h2 { margin: 0 0 4px; font-size: 22px; }
.ac-postrow h2 a { text-decoration: none; color: var(--ink); }
.ac-date { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.ac-pager { margin-top: 20px; display: flex; gap: 8px; }
.ac-pager a, .ac-pager span { padding: 6px 12px; border-radius: 10px; background: var(--card); }
.ac-article--post img { border-radius: 16px; }
.ac-guides { background: #f1ecf7; border-radius: 26px; padding: 20px; }
.ac-guides-h { font: 600 20px var(--display); color: var(--ink); margin: 0 0 14px; }
.ac-latest ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ac-latest li a { display: flex; justify-content: space-between; gap: 12px; background: var(--card); padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.ac-latest small { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .ac-top, .ac-foot, .ac-related, .ac-toc, .ac-ad, .ac-hero-side { display: none; } body { background: #fff; } }
