/* Loaded after rewind.css so badges stay visible on small screens. */
.category-nav {display:flex;flex-wrap:wrap;gap:10px;overflow:visible;}
.category-nav a {--pill-bg:#ead1b8;--pill-ink:#68321f;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px 8px 18px;border:2px solid transparent;border-radius:999px;background:var(--pill-bg);color:var(--pill-ink);font-weight:700;white-space:normal;text-decoration:none;}
.category-nav a:nth-child(3n+2) {--pill-bg:#e9d69b;--pill-ink:#514016;}
.category-nav a:nth-child(3n+3) {--pill-bg:#d6e1d3;--pill-ink:#29483b;}
.category-nav a:hover {background:var(--pill-bg);color:var(--pill-ink);border-color:var(--pill-ink);text-decoration:none;}
.category-nav a[aria-current="page"] {background:var(--pill-ink);color:#fff8e8;border-color:var(--pill-ink);outline:2px solid var(--pill-ink);outline-offset:3px;}
.category-nav .category-count {display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;background:#fff8e8;color:var(--pill-ink);font-size:12px;line-height:1;font-weight:700;opacity:1;}
.category-nav a:focus-visible,.story-tags a:focus-visible {outline:3px solid #352b23;outline-offset:4px;}
.story-tags {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:28px 0;font-size:14px;}
.story-tags>span {width:100%;font-weight:700;}
.story-tags a {border:1px solid #b34325;border-radius:999px;padding:7px 14px;color:#87361e;min-height:40px;display:inline-flex;align-items:center;}
.story-tags a:hover {background:#ead1b8;}
.tag-picker {border:1px solid #352b2340;border-radius:8px;padding:16px;margin:22px 0;min-width:0;}
.tag-options {display:flex;flex-wrap:wrap;gap:8px 16px;max-height:240px;overflow:auto;}
.tag-options label.check {display:inline-flex;gap:8px;align-items:center;margin:0;max-width:100%;overflow-wrap:anywhere;}
.tag-options input[type=checkbox] {width:auto;flex-shrink:0;}
.tag-manage {display:grid;gap:18px;}
.tag-manage form {display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0;}
.tag-manage label {display:block;flex:1;min-width:160px;}
.tag-manage input:not([type=checkbox]),.tag-manage select {width:100%;}
.tag-manage label.check {display:flex;align-items:center;}
.tag-manage input[type=checkbox] {width:18px;}
@media(max-width:480px) {.category-nav {gap:10px 8px;}.category-nav a {padding:7px 9px 7px 12px;font-size:13px;}.category-nav .category-count {display:inline-flex;min-width:24px;height:24px;}}


/* Site-wide lozenges for boxed actions and selectable controls. */
.button,
button:not(.link):not(.text-button),
input[type="submit"],
input[type="button"],
input[type="reset"],
.filters a,
.poll-option,
.poll-card .poll-option {
    border-radius:999px;
}
.button,
button:not(.link):not(.text-button),
input[type="submit"],
input[type="button"],
input[type="reset"] {
    min-height:44px;
}
.filters a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:8px 18px;
}
.poll-option,
.poll-card .poll-option {
    padding-inline:20px;
}
.poll-option:has(input:checked),
.poll-card .poll-option:has(input:checked) {
    box-shadow:inset 0 0 0 1px var(--rust);
}
.poll-option:focus-within {
    outline:3px solid var(--rust);
    outline-offset:3px;
}

/* Override reading-page link and navigation hover underlines. */
.reading .story-tags a,
.reading .story-tags a:hover,
.reading .story-tags a:focus,
.reading .story-tags a:active {
    text-decoration:none;
}
