/* 冷靜練習區自己的樣式。共用版型（顏色、字型、頁首頁尾）在 /assets/site.css，要先載入它。 */
:root {
  --warm: #c9874a;
  --warm-dark: #9a5f2c;
  --night: #24211f;
  --night-ink: #f4ece2;
  --soft: #f3ebe1;
}
[hidden] { display: none !important; }
a { color: var(--warm-dark); }


.crumbs { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }

h1 { font-size: 28px; line-height: 1.4; margin: 18px 0 10px; }
h2 { font-size: 21px; line-height: 1.5; margin: 34px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.lead { font-size: 18px; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }

.note {
  background: var(--soft);
  border-left: 4px solid var(--warm);
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 15.5px;
}
.note p { margin: 4px 0; }

/* 情境選擇 */
.feel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.feel-grid a {
  display: block; padding: 18px 14px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.feel-grid a strong { display: block; font-size: 19px; }
.feel-grid a span { font-size: 14px; color: var(--muted); }
.feel-grid a:hover, .feel-grid a:focus { border-color: var(--warm); }

.tool-list { list-style: none; padding: 0; }
.tool-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; border: 0;
  background: var(--warm); color: #fff; font-size: 17px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover, .btn:focus { background: var(--warm-dark); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* 練習畫面（不放廣告） */
.trainer {
  background: var(--night); color: var(--night-ink);
  border-radius: 20px; padding: 22px 18px 26px; margin: 18px 0; text-align: center;
}
.trainer a { color: #f1c38f; }
.trainer a.btn { color: #fff; }
.trainer-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 15px; margin-bottom: 8px; }
.trainer-settings select { font: inherit; font-size: 15px; padding: 3px 6px; border-radius: 8px; }
.trainer-settings .check { display: inline-flex; align-items: center; gap: 6px; }
.trainer.is-running .trainer-settings, .trainer.is-done .trainer-settings { display: none; }
.breath-wrap { height: 260px; display: flex; align-items: center; justify-content: center; }
.breath-circle {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f6c58d 0%, #c9874a 55%, #7a4a26 100%);
  box-shadow: 0 0 60px rgba(246, 197, 141, .35);
  transform: scale(.55);
  transition-property: transform; transition-timing-function: ease-in-out; transition-duration: 1.5s;
  display: flex; align-items: center; justify-content: center;
}
.phase-count { font-size: 46px; font-weight: 700; color: #3a2414; }
.phase-label { font-size: 26px; font-weight: 700; margin: 6px 0 0; min-height: 1.5em; }
.phase-hint { margin: 0; min-height: 1.6em; color: #d8cbbb; }
.trainer-progress { font-size: 14px; color: #b9ab9b; min-height: 1.4em; margin: 6px 0; }
.calm-prompt { min-height: 1.8em; margin: 8px 0 0; font-size: 17px; color: #f1d9bd; }
.trainer .btn.ghost { color: var(--night-ink); }
.trainer-done { outline: none; }
.trainer-done h2 { margin-top: 6px; }

.ground-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; min-height: 58px; }
.ground-dots .dot {
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid #f1c38f;
  background: transparent; cursor: pointer;
}
.ground-dots .dot.on { background: #f1c38f; }

/* 文章 */
article ol, article ul { padding-left: 1.4em; }
article li { margin: 4px 0; }
.refs { font-size: 14.5px; color: var(--muted); }
.refs li { margin: 6px 0; word-break: break-all; }
.next-steps { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 12px; margin: 28px 0; }


@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .breath-wrap { height: 220px; }
  .breath-circle { width: 190px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .breath-circle { transition: none; }
}
