/* ChickenCoops.ai look: warm cream, terracotta, Fraunces + DM Sans (from the original app theme). */
:root {
  --cc-bg: oklch(0.975 0.022 85);
  --cc-fg: oklch(0.25 0.04 40);
  --cc-card: oklch(0.99 0.012 85);
  --cc-primary: oklch(0.58 0.18 28);
  --cc-primary-fg: oklch(0.98 0.01 80);
  --cc-secondary: oklch(0.78 0.06 140);
  --cc-muted: oklch(0.93 0.02 80);
  --cc-muted-fg: oklch(0.48 0.03 60);
  --cc-accent: oklch(0.88 0.16 95);
  --cc-border: oklch(0.25 0.04 40 / 0.16);
  --cc-radius: 1.1rem;
  --cc-display: "Fraunces", ui-serif, Georgia, serif;
  --cc-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body, body.ast-separate-container, .ast-separate-container .site-content { background: var(--cc-bg) !important; }
body, button, input, select, textarea, .ast-button { font-family: var(--cc-sans); color: var(--cc-fg); }
h1, h2, h3, h4, .entry-title, .site-title, .site-title a { font-family: var(--cc-display) !important; color: var(--cc-fg); letter-spacing: -0.01em; }
a { color: var(--cc-primary); }
a:hover { color: oklch(0.5 0.18 28); }

/* Header */
.site-header, .main-header-bar, .ast-primary-header-bar { background: oklch(0.985 0.016 85) !important; border-bottom: 1px solid var(--cc-border) !important; }
.site-title a { font-weight: 700; }
.main-header-menu .menu-link, .ast-builder-menu-1 .menu-item > .menu-link { color: var(--cc-fg) !important; font-weight: 500; }
.main-header-menu .menu-item:hover > .menu-link, .main-header-menu .current-menu-item > .menu-link { color: var(--cc-primary) !important; }
.main-header-menu .sub-menu { background: var(--cc-card); border: 1px solid var(--cc-border) !important; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px -12px oklch(0.25 0.04 40 / 0.25); }

/* Content card */
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post {
  background: var(--cc-card) !important; border-radius: var(--cc-radius); border: 1px solid var(--cc-border);
  box-shadow: 0 1px 2px oklch(0.25 0.04 40 / 0.06);
}
.single-cc_page .entry-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; }
.single-cc_page .ast-article-single { padding: clamp(1.4rem, 4vw, 3rem) !important; }
.ccmig { font-size: 1.04rem; line-height: 1.7; }
.ccmig h2 { font-size: 1.55rem; margin: 1.7em 0 .5em; }
.ccmig h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.ccmig a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ccmig > div > a:first-child, .ccmig a[href="/"]:first-child { text-decoration: none; font-size: .92rem; color: var(--cc-muted-fg); }
.ccmig table { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--cc-border); }
.ccmig th { background: var(--cc-muted) !important; font-weight: 600; }
.ccmig details { background: var(--cc-muted); border-radius: 12px; padding: .7em 1em; margin: .6em 0; }
.ccmig details summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer, .site-below-footer-wrap, .site-primary-footer-wrap { background: oklch(0.94 0.025 80) !important; border-top: 1px solid var(--cc-border); }
.footer-nav-wrap .menu-link { color: var(--cc-fg) !important; }

/* Tools */
.cc-tool { background: linear-gradient(180deg, oklch(0.97 0.035 80), var(--cc-card)); border: 1px solid var(--cc-border); border-radius: var(--cc-radius); padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 2rem; }
.cct-sub { color: var(--cc-muted-fg); margin-bottom: 1rem; font-size: .98rem; }
.cct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem 1rem; margin-bottom: 1rem; }
.cct-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--cc-fg); }
.cct-field input, .cct-field select {
  width: 100%; height: 44px; border: 1px solid var(--cc-border); border-radius: 12px; background: #fff; padding: 0 .8rem;
  font-size: 1rem; color: var(--cc-fg); box-shadow: none;
}
.cct-field input:focus, .cct-field select:focus { outline: 2px solid oklch(0.58 0.18 28 / 0.35); border-color: var(--cc-primary); }
.cct-checks { margin: -.2rem 0 1rem; font-size: .95rem; }
.cct-checks input { margin-right: .4rem; accent-color: var(--cc-primary); }
.cct-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.cct-card { background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; padding: .85rem 1rem; }
.cct-card.cct-wide { grid-column: 1 / -1; }
.cct-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cc-muted-fg); font-weight: 600; }
.cct-value { font-family: var(--cc-display); font-size: 1.55rem; font-weight: 700; color: var(--cc-primary); line-height: 1.2; margin-top: .2rem; }
.cct-wide .cct-value { font-family: var(--cc-sans); font-size: 1.02rem; color: var(--cc-fg); font-weight: 600; }
.cct-hint { font-size: .82rem; color: var(--cc-muted-fg); margin-top: .25rem; }
.cct-note { border-radius: 12px; padding: .75rem 1rem; margin-bottom: .9rem; font-weight: 600; font-size: .95rem; }
.cct-note.is-ok { background: oklch(0.78 0.06 140 / 0.22); border: 1px solid oklch(0.6 0.08 140 / 0.4); }
.cct-note.is-warn { background: oklch(0.58 0.22 28 / 0.08); border: 1px solid oklch(0.58 0.22 28 / 0.35); }
.cct-empty { color: var(--cc-muted-fg); }
.cct-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.cct-btn { background: var(--cc-primary); color: var(--cc-primary-fg); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cct-btn:hover { filter: brightness(1.06); color: var(--cc-primary-fg); }
.cct-btn-ghost { background: transparent; color: var(--cc-fg); border: 1px solid var(--cc-border); }
.cct-btn-ghost:hover { background: var(--cc-muted); color: var(--cc-fg); }

@media print {
  .site-header, .site-footer, .cct-actions { display: none !important; }
  .cc-tool { border: 0; background: none; }
}

/* Planner extras */
.cct-span { grid-column: 1 / -1; }
.cct-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.cct-chip { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; background: #fff; color: var(--cc-fg); border: 1px solid var(--cc-border); border-radius: 12px; padding: .55rem .8rem; font-size: .92rem; cursor: pointer; }
.cct-chip small { color: var(--cc-muted-fg); font-size: .75rem; }
.cct-chip.is-on { border-color: var(--cc-primary); background: oklch(0.58 0.18 28 / 0.08); font-weight: 600; }
.cct-chip:hover { background: var(--cc-muted); color: var(--cc-fg); }
.cct-rows { display: grid; gap: .5rem; margin-bottom: .6rem; }
.cct-row { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.cct-row .cct-field { flex: 1 1 140px; }
.cct-x { background: none; border: 0; color: var(--cc-muted-fg); text-decoration: underline; cursor: pointer; padding: .7rem .2rem; font-size: .85rem; }
.cct-add { padding: .45rem .9rem; }
.cct-extra { margin-top: 1rem; }
.cct-extra h3 { font-size: 1.15rem; margin: 1.3em 0 .5em; }
.cct-muted { color: var(--cc-muted-fg); font-size: .95rem; }
.cct-table-wrap { overflow-x: auto; margin: .6rem 0 1rem; }
.cct-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--cc-border); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.cct-table th, .cct-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--cc-border); text-align: left; }
.cct-table th { background: var(--cc-muted); font-weight: 600; }
.cct-warn-list li { color: oklch(0.45 0.16 28); }
.cct-callout { background: oklch(0.88 0.16 95 / 0.25); border: 1px solid oklch(0.75 0.14 95 / 0.5); border-radius: 12px; padding: .75rem 1rem; }
.cct-chart-wrap { background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; padding: .5rem; margin: 1rem 0; }
.cct-chart { width: 100%; height: auto; display: block; }
.cct-chart-line { fill: none; stroke: var(--cc-primary); stroke-width: 2.5; }
.cct-chart-target { stroke: var(--cc-fg); stroke-dasharray: 5 5; opacity: .45; }
.cct-chart-label { font-size: 11px; fill: var(--cc-muted-fg); font-family: var(--cc-sans); }
.cct-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cct-steps li label { display: flex; gap: .7rem; background: #fff; border: 1px solid var(--cc-border); border-radius: 12px; padding: .7rem .9rem; cursor: pointer; }
.cct-steps li input { margin-top: .3rem; accent-color: var(--cc-primary); flex: none; }
.cct-steps li span { display: block; }
.cct-steps .cct-step-meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cc-muted-fg); }
.cct-steps .cct-step-detail { font-size: .93rem; color: var(--cc-muted-fg); margin-top: .15rem; }
.cct-steps li.is-done label { background: oklch(0.58 0.18 28 / 0.06); border-color: oklch(0.58 0.18 28 / 0.35); }
.cct-steps li.is-done strong { text-decoration: line-through; opacity: .7; }

/* AI tools */
.cct-chips-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cct-field textarea { width: 100%; border: 1px solid var(--cc-border); border-radius: 12px; background: #fff; padding: .6rem .8rem; font-size: 1rem; color: var(--cc-fg); }
.cca-go { margin-top: .4rem; padding: .8rem 1.6rem; font-size: 1rem; }
.cca-go:disabled { opacity: .6; cursor: wait; }
.cca-status { margin-top: .8rem; font-size: .95rem; }
.cca-status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: .5rem; vertical-align: -2px; border: 2px solid var(--cc-primary); border-right-color: transparent; border-radius: 50%; animation: cca-spin .8s linear infinite; }
.cca-status.is-err { color: oklch(0.5 0.2 28); font-weight: 600; }
@keyframes cca-spin { to { transform: rotate(360deg); } }
.cca-out { margin-top: 1rem; }
.cca-out h3 { font-size: 1.15rem; margin: 1.3em 0 .5em; }
.cca-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.cca-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--cc-border); }
.cca-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cca-thumb-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 24px; padding: 0; cursor: pointer; }
.cca-urgency { border-radius: 14px; padding: .9rem 1.1rem; border: 1px solid; }
.cca-urgency.is-emergency { background: oklch(0.58 0.22 28 / 0.14); border-color: oklch(0.58 0.22 28 / 0.5); }
.cca-urgency.is-urgent { background: oklch(0.75 0.16 60 / 0.18); border-color: oklch(0.7 0.16 60 / 0.5); }
.cca-urgency.is-monitor { background: oklch(0.88 0.16 95 / 0.28); border-color: oklch(0.75 0.14 95 / 0.5); }
.cca-urgency.is-mild { background: oklch(0.78 0.06 140 / 0.25); border-color: oklch(0.6 0.08 140 / 0.45); }
.cca-conds, .cca-names, .cca-breeds { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cca-cond-head, .cca-name-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cca-cond-head a { font-weight: 700; font-family: var(--cc-display); font-size: 1.1rem; text-decoration: none; }
.cca-pill { font-size: .72rem; border-radius: 999px; padding: .15rem .55rem; background: var(--cc-muted); color: var(--cc-fg); font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.cca-pill.is-high { background: oklch(0.58 0.18 28 / 0.14); color: oklch(0.45 0.16 28); }
.cca-pill.is-medium { background: oklch(0.88 0.16 95 / 0.4); }
.cca-headline { font-family: var(--cc-display); font-size: 1.2rem; font-weight: 600; }
.cca-name-top strong { font-family: var(--cc-display); font-size: 1.3rem; flex: 1; }
.cca-emoji { font-size: 1.5rem; }
.cca-breed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; }
.cca-henroo { background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; padding: 1rem 1.1rem; }
.cca-big { font-family: var(--cc-display); font-size: 1.6rem; font-weight: 700; color: var(--cc-primary); margin-bottom: .6rem; }
.cca-bar { height: 14px; border-radius: 999px; background: oklch(0.65 0.1 240 / 0.35); overflow: hidden; }
.cca-bar-hen { display: block; height: 100%; background: var(--cc-primary); }
.cca-bar-legend { display: flex; justify-content: space-between; font-size: .85rem; margin: .35rem 0; font-weight: 600; }
.cca-bars { display: flex; gap: 4px; align-items: flex-end; height: 180px; background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; padding: .8rem .6rem .4rem; }
.cca-barcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.cca-barfill { width: 100%; max-width: 34px; background: var(--cc-primary); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.cca-barval { font-size: .68rem; color: var(--cc-muted-fg); }
.cca-barlab { font-size: .7rem; color: var(--cc-muted-fg); margin-top: .2rem; }
.cct-check { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1.2rem; }

/* Coop planner */
.cca-plan-title { font-size: 1.8rem; margin: .4rem 0 .3rem; }
.cca-plan-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cca-plan-wrap { background: #fff; border: 1px solid var(--cc-border); border-radius: 14px; padding: .8rem; }
.cca-plan-svg { width: 100%; height: auto; max-height: 460px; display: block; }
.cca-plan-run { fill: oklch(0.78 0.06 140 / 0.25); stroke: oklch(0.55 0.08 140); stroke-width: 1.5; stroke-dasharray: 6 4; }
.cca-plan-coop { fill: oklch(0.88 0.06 70 / 0.6); stroke: oklch(0.4 0.06 50); stroke-width: 3; }
.cca-plan-room { fill: none; stroke: oklch(0.4 0.06 50 / .4); stroke-width: 1; }
.cca-plan-wall { fill: oklch(0.4 0.06 50); }
.cca-plan-nest, .cca-plan-key .cca-plan-nest { fill: oklch(0.88 0.16 95); stroke: oklch(0.55 0.1 80); }
.cca-plan-roost, .cca-plan-key .cca-plan-roost { fill: oklch(0.45 0.08 50); }
.cca-plan-door, .cca-plan-key .cca-plan-door { fill: var(--cc-primary); }
.cca-plan-pop, .cca-plan-key .cca-plan-pop { fill: oklch(0.5 0.15 250); }
.cca-plan-window, .cca-plan-key .cca-plan-window { fill: oklch(0.8 0.08 220); }
.cca-plan-feed { fill: oklch(0.7 0.1 60); } .cca-plan-water { fill: oklch(0.7 0.1 230); }
.cca-plan-label { font-size: 9px; fill: var(--cc-fg); font-family: var(--cc-sans); font-weight: 600; }
.cca-plan-key { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--cc-muted-fg); margin-top: .5rem; }
.cca-plan-key span { display: inline-flex; align-items: center; gap: .35rem; }
.cca-plan-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.cca-plan-key i.cca-plan-nest { background: oklch(0.88 0.16 95); } .cca-plan-key i.cca-plan-roost { background: oklch(0.45 0.08 50); }
.cca-plan-key i.cca-plan-door { background: var(--cc-primary); } .cca-plan-key i.cca-plan-pop { background: oklch(0.5 0.15 250); } .cca-plan-key i.cca-plan-window { background: oklch(0.8 0.08 220); }
.cca-build li { margin-bottom: .4rem; }
