/* /phoenix-tree-care-calendar/ – year-at-a-glance planner. Builds on /components/shared-styles.css tokens. */
.ptc { --ink: var(--text-dark, #2c2419); --muted: var(--text-muted, #6e6353); --line: var(--border, #e2d8c6);
  --green: var(--primary, #4f7a3f); --green-d: var(--primary-dark, #39592c); --acc: #c2693e; --acc-d: #9c5230; --sand: var(--bg-cream, #f5ecdd);
  --lab: 208px; color: var(--ink); }
.ptc h1, .ptc h2, .ptc h3 { font-family: Montserrat, sans-serif; color: var(--ink); }
.ptc h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; line-height: 1.2; }
.ptc h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.ptc p, .ptc li { line-height: 1.65; }
.ptc a:not(.ptc-btn):not(.mh-a) { color: var(--green-d); text-decoration: underline; text-underline-offset: 2px; }
.ptc a:focus-visible, .ptc button:focus-visible, .ptc summary:focus-visible, .ptc textarea:focus-visible, .cal-wrap:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ptc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ptc-sec { padding: 56px 0; }
.ptc-sand { background: var(--sand); }
.ptc-narrow { max-width: 780px; }
.ptc-narrow > p { font-size: 17px; margin: 0 0 14px; }
.print-only { display: none; }

/* hero */
.ptc-hero { background: var(--sand); padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.ptc-kicker { font: 700 12px/1.4 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--acc-d); margin: 0 0 10px; }
.ptc-hero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; font-weight: 800; margin: 0 0 14px; letter-spacing: -.015em; max-width: 920px; }
.ptc-lede { font-size: 18px; margin: 0; max-width: 780px; }
.ptc-byline { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* buttons */
.ptc-btn { display: inline-block; text-align: center; font: 700 14.5px Montserrat, sans-serif; padding: 12px 18px; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--green-d); background: var(--green-d); color: #fff !important; text-decoration: none !important; cursor: pointer; line-height: 1.3; }
.ptc-btn:hover { background: #2c4622; }
.ptc-btn--ghost { background: #fff; color: var(--green-d) !important; }
.ptc-btn--ghost:hover { background: #f1f6ee; }

/* calendar section */
.ptc-cal { background: var(--bg-light, #fdf9f2); padding-top: 38px; }
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-head h2 { margin: 0; }
.cal-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.how { max-width: 900px; font-size: 16px; margin: 8px 0 14px; }

/* legend */
.legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.legend li { display: flex; align-items: center; }
.legend .bar { padding: 5px 12px; min-height: 0; font-size: 12.5px; }
.legend .lg-blank { font-size: 13px; color: var(--muted); gap: 8px; }
.lg-empty { width: 22px; height: 16px; border: 1px dashed #c9bda8; border-radius: 3px; background: #fff; display: inline-block; }

/* bars */
.bar { display: flex; align-items: center; justify-content: center; text-align: center; gap: 5px; min-height: 36px; padding: 4px 6px; border-radius: 6px; font: 700 12.5px/1.2 Montserrat, sans-serif; border: 1.5px solid transparent; box-sizing: border-box; }
.bar .bt { overflow-wrap: normal; hyphens: none; }
.bar.b-1 { padding: 4px 2px; font-size: 11.5px; gap: 3px; }
.bar.b-1::before { display: none; }
.b-best { background: #3f6a31; color: #fff; border-color: #2f5224; }
.b-best::before { content: "\2713"; font-weight: 800; }
.b-ok { background: repeating-linear-gradient(135deg, #f3dfb0 0 7px, #f9ecc9 7px 14px); color: #3a2c1c; border-color: #d3b46e; }
.b-ok::before { content: "~"; font-weight: 800; }
.b-avoid { background: repeating-linear-gradient(45deg, #9c5230 0 6px, #86431f 6px 12px); color: #fff; border-color: #6e3719; }
.b-avoid::before { content: "\2715"; font-weight: 800; }
.b-watch { background: #fff; color: #4a3724; border: 2px dashed #6b4f33; }
.b-watch::before { content: "\25CF"; font-size: 10px; }
.b-w1, .b-w2, .b-w3 { color: #123d4d; border-color: #8cb6c6; }
.b-w1 { background: #e3f0f4; } .b-w2 { background: #bcd9e3; } .b-w3 { background: #8fc0d3; }
.b-w1::before, .b-w2::before, .b-w3::before { content: "\1F4A7"; font-size: 11px; filter: grayscale(1) brightness(.4); }

/* planner grid */
.cal-wrap { position: relative; overflow-x: auto; overflow-y: visible; padding-top: 38px; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.cal-inner { position: relative; min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.cal col.c-lab { width: var(--lab); }
.cal td, .cal th { padding: 0; }
.cal td { padding: 3px 2px; height: 46px; vertical-align: middle; position: relative; z-index: 1; }
.cal td.empty { padding: 0; }
.cal tbody tr:not(.grp) > * { border-bottom: 1px solid #efe7d8; }
.cal th.lab { position: sticky; left: 0; z-index: 4; background: #fff; text-align: left; border-right: 1px solid var(--line); }
.lab-in { display: block; padding: 6px 10px 6px 12px; line-height: 1.25; }
.lab-in b { display: block; font: 700 13px/1.25 Montserrat, sans-serif; color: var(--ink); }
.lab-in small { display: block; font: 400 11.5px/1.3 "Open Sans", sans-serif; color: var(--muted); }
.srcs { display: block; margin-top: 2px; }
.sn { display: inline-block; min-width: 17px; padding: 0 4px; margin-right: 3px; font: 700 10.5px/17px Montserrat, sans-serif; text-align: center; color: var(--green-d) !important; background: #eef3ea; border: 1px solid #cbdcc2; border-radius: 9px; text-decoration: none !important; }
.sn:hover { background: var(--green-d); color: #fff !important; }
.rlink { display: inline-block; font-size: 11.5px; margin: 1px 0; }
/* header rows */
  .cal thead th, .cal .grp th { position: relative; z-index: 2; }
.cal thead th.lab, .cal .grp th { z-index: 4; }
.cal thead th { font-family: Montserrat, sans-serif; font-weight: 700; text-align: center; }
.cal thead th.lab { background: #fbf6ec; }
.cal .seasons th, .cal .monsoon th { font-size: 12px; padding: 6px 4px; border-bottom: 2px solid #fff; letter-spacing: .02em; }
.cal .seasons .lab-in, .cal .monsoon .lab-in, .cal .months .lab-in { font: 700 11.5px/1.2 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal .seasons small, .cal .monsoon small { text-transform: none; letter-spacing: 0; font: 400 11px "Open Sans", sans-serif; }
.s-win { background: #dfe9f0; color: #1f4256; } .s-spr { background: #dcebd2; color: #2d4d22; }
.s-sum { background: #f4d6c4; color: #6e3519; } .s-fal { background: #f2e1b6; color: #5b4310; }
.s-mon { background: #5a4778; color: #fff; border-radius: 6px; line-height: 1.25; }
.cal .monsoon td { background: #fff; }
.cal .months th { background: #fbf6ec; border-bottom: 1px solid var(--line); }
.cal .months th a { display: block; padding: 10px 0; color: var(--ink) !important; text-decoration: none !important; font: 800 13px Montserrat, sans-serif; }
.cal .months th a:hover { background: #f1e6d0; }
.cal .months th.is-sel a { background: var(--ink); color: #fff !important; }
.cal .grp th { background: #efe5d2; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 30px; }
.grp-in { display: block; position: sticky; left: 0; width: max-content; padding: 6px 12px; font: 800 12px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--acc-d); }
.cal-lines { position: absolute; left: var(--lab); right: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to right, #ede4d3 0, #ede4d3 1px, transparent 1px, transparent calc(100% / 12)); }
.cal-now { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (100% - var(--lab)) * var(--now, 0) / 12); width: calc((100% - var(--lab)) / 12); z-index: 0; pointer-events: none;
  background: rgba(194,105,62,.13); border-left: 2px solid var(--acc); border-right: 2px solid var(--acc); }
.cal-pill { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; white-space: nowrap; background: var(--acc-d); color: #fff; font: 700 12px Montserrat, sans-serif; padding: 6px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(43,32,19,.25); }
.cal-pill::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--acc-d); }
.cal-now.al-r .cal-pill { left: auto; right: -2px; transform: none; }
.cal-now.al-r .cal-pill::after { left: auto; right: 30px; margin-left: 0; }
.cal-now.al-l .cal-pill { left: -2px; transform: none; }
.cal-now.al-l .cal-pill::after { left: 30px; margin-left: 0; }
.cal-foot { font-size: 13.5px; color: var(--muted); margin: 10px 0 18px; }
.hint { display: none; font: 600 13px Montserrat, sans-serif; color: var(--acc-d); margin: 0 0 6px; }

/* month pills and panels */
.pills { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.pills a { display: block; text-align: center; padding: 10px 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: 700 13.5px Montserrat, sans-serif; color: var(--ink) !important; text-decoration: none !important; }
.pills a:hover { border-color: var(--green); }
.pills a.is-sel { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.pills a.is-now { box-shadow: 0 0 0 2px var(--acc) inset; }
.panels { display: grid; gap: 14px; }
.mp { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 10px; padding: 16px 20px 8px; scroll-margin-top: 90px; }
.mp[hidden] { display: none; }
.mp.is-now { border-left-color: var(--acc); }
.js .panels { gap: 0; }
.mp h3 { font-size: 20px; margin-bottom: 10px; }
.now-badge { margin-left: 10px; font: 700 11px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--acc-d); border-radius: 4px; padding: 3px 8px; vertical-align: middle; }
.now-badge[hidden] { display: none; }
.mp ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mp li { display: flex; gap: 10px; align-items: baseline; margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.tg { flex: 0 0 auto; min-width: 54px; text-align: center; font: 700 10.5px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border-radius: 4px; color: #fff; }
.tg-prune { background: #3f6a31; } .tg-plant { background: #9c5230; } .tg-water { background: #1f5f78; }
.tg-feed { background: #7a5a0d; } .tg-watch { background: #5c442b; } .tg-storm { background: #5a4778; }
.mp .srcs { display: inline; margin-left: 2px; }

/* how built, answers, cite, FAQ */
.ans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.ans { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 6px; }
.ans p { font-size: 15.5px; margin: 0 0 12px; }
.ans .srcs { display: inline; }
#cite label { display: block; font: 700 13px Montserrat, sans-serif; margin: 16px 0 6px; }
.copyrow { display: flex; gap: 10px; align-items: stretch; }
.copyrow textarea { flex: 1; font: 14px/1.5 "Open Sans", sans-serif; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.copyrow .ptc-btn { flex: 0 0 90px; }
.copy-status { min-height: 22px; font-size: 14px; color: var(--green-d); margin: 8px 0 6px !important; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font: 700 16px Montserrat, sans-serif; padding: 15px 0; }
.faq p { margin: 0 0 16px; font-size: 16px; }

/* CTA */
.ptc-cta { padding: 52px 0; background: var(--bg-light, #fdf9f2); }
.ptc-cta__box { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; background: var(--green-d); color: #fff; border-radius: 16px; padding: 30px 36px; }
.ptc-cta__box h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.ptc-cta__box p { margin: 0; color: rgba(255,255,255,.92); }
.ptc-cta__btns { display: flex; flex-direction: column; gap: 10px; }
.ptc-cta__box .ptc-btn { background: #fff; color: var(--green-d) !important; border-color: #fff; }
.ptc-cta__box .ptc-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7); }

/* sources */
.srclist { padding-left: 24px; margin: 0; }
.srclist li { font-size: 14.5px; margin-bottom: 8px; color: var(--muted); }
.srclist li:target { background: #fff4ea; outline: 2px solid var(--acc); }

@media (max-width: 1100px) {
  .ptc { --lab: 180px; }
  .mp ul { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ptc { --lab: 100px; }
  .hint { display: block; }
  .cal-inner { min-width: 730px; }
  .ptc-cal .container { padding: 0 12px; }
  .cal-tools { width: 100%; }
  .cal-tools .ptc-btn { flex: 1 1 0; font-size: 13px; padding: 10px 8px; min-height: 42px; }
  .legend .bar { font-size: 11.5px; padding: 4px 9px; }
  .lab-in small { display: none; }
  .sn { min-width: 15px; font-size: 9.5px; line-height: 15px; margin-right: 2px; }
  .cal td { height: 42px; }
  .bar.b-1 { font-size: 10.5px; }
  .lab-in { padding: 6px 6px 6px 8px; }
  .lab-in b { font-size: 12px; }
  .cal .seasons .lab-in small, .cal .monsoon .lab-in small { display: none; }
  .cal .seasons th, .cal .monsoon th { font-size: 11px; }
  .bar { font-size: 11.5px; }
  .ans-grid { grid-template-columns: 1fr; }
  .ptc-cta__box { grid-template-columns: 1fr; padding: 26px 22px; }
  .ptc-sec { padding: 42px 0; }
  .pills { grid-template-columns: repeat(6, 1fr); }
  .copyrow { flex-direction: column; }
  .copyrow .ptc-btn { flex: 0 0 auto; }
  .cal-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ptc * { transition: none !important; scroll-behavior: auto !important; } }

/* print: one landscape page with the grid, a sources line and a small credit */
@media print {
  @page { size: landscape; margin: 8mm; }
  html, body { background: #fff !important; }
  body > *:not(main), .ptc-hero, .ptc-sec:not(#calendar), .ptc-cta, .no-print, .panels, .pills, .hint, .cal-now, .cal-pill { display: none !important; }
  .ptc { --lab: 52mm; }
  .ptc-cal { padding: 0 !important; background: #fff !important; }
  .ptc-cal .container { max-width: none; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cal-head { margin: 0 0 2mm; }
  .cal-head h2 { font-size: 13pt; }
  .how { font-size: 8pt; margin: 0 0 2mm; max-width: none; line-height: 1.3; }
  .legend { margin: 0 0 2mm; gap: 3px 6px; }
  .legend .bar { font-size: 7pt; padding: 1px 6px; }
  .legend .lg-blank { font-size: 7pt; }
  .cal-wrap { overflow: visible; padding-top: 0; }
  .cal-inner { min-width: 0 !important; border-radius: 0; }
  .cal { font-size: 7pt; }
  .cal td { height: 6.6mm; padding: 1px; }
  .cal .bar { min-height: 5.4mm; padding: 0 2px; font-size: 6.8pt; border-width: 1px; }
  .cal .bar::before { font-size: 6pt; }
  .lab-in { padding: 1px 4px; }
  .lab-in b { font-size: 7.2pt; }
  .lab-in small { font-size: 6pt; line-height: 1.15; }
  .sn { font-size: 6pt; line-height: 10px; min-width: 10px; padding: 0 2px; margin-right: 1px; }
  .rlink { display: none; }
  .lab-in small { display: none; }
  .lab-in b { display: inline; }
  .srcs { display: inline; margin-left: 3px; }
  .cal .seasons th, .cal .monsoon th { font-size: 7pt; padding: 1px; }
  .cal .seasons .lab-in, .cal .monsoon .lab-in { padding: 0 4px; }
  .cal .seasons small, .cal .monsoon small { display: none; }
  .cal .months a { padding: 1.5px 0; font-size: 7.5pt; }
  .cal .grp th { height: 4.2mm; }
  .grp-in { padding: 1px 6px; font-size: 7pt; }
  .cal-foot { font-size: 6.5pt; margin: 1mm 0; }
  .cal th.lab { position: static; }
  .print-only { display: block; }
  .cal-printfoot { margin-top: 2mm; font-size: 6.5pt; line-height: 1.3; color: #444; }
  .cal-printfoot p { margin: 0 0 1mm; font-size: 6.5pt; line-height: 1.3; }
  .cal-printfoot .credit { font-weight: 700; color: #000; }
  .cal tr { break-inside: avoid; }
  .cal .months th.is-sel a { background: none; color: var(--ink) !important; }
}
html:not(.js) #print-btn, html:not(.js) #print-btn2, html:not(.js) .copyrow .ptc-btn { display: none; }
