/* Tools section: index and tool pages. Loaded on top of styles.css. */
.tools-container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.tools-index, .tool-hero { padding: 7rem 0 2rem; }
.tools-title, .tool-title { font-family: 'Epilogue', sans-serif; font-size: clamp(2rem, 5vw, 2.75rem); color: #2D5F5D; margin: 0.5rem 0 0.25rem; }
.tools-subtitle, .tool-tagline { font-size: 1.15rem; color: #4a5a58; margin: 0 0 1rem; }
.tool-intro { color: #374140; line-height: 1.6; }
.tools-grid { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.tool-card { display: block; padding: 1.5rem; border-radius: 16px; background: #f3f8f7; color: inherit; text-decoration: none; border: 1px solid #d9e7e4; }
.tool-card:hover, .tool-card:focus-visible { border-color: #2D5F5D; }
.tool-card-name { margin: 0 0 0.25rem; color: #2D5F5D; font-family: 'Epilogue', sans-serif; font-size: 1.35rem; }
.tool-card-tagline { margin: 0 0 0.75rem; color: #4a5a58; }
.tool-card-cta { color: #2D5F5D; font-weight: 600; }
.tool-widget { padding: 1rem 0 2rem; }
.tool-content, .tool-faq, .tool-related, .tool-cta { padding: 2rem 0; }
.tools-prose h2, .tool-faq h2, .tool-related h2, .tool-cta h2 { font-family: 'Epilogue', sans-serif; color: #2D5F5D; font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.tools-prose p { line-height: 1.7; color: #374140; }
.tool-disclaimer { font-size: 0.9rem; color: #6b7775; }
.tool-faq details { border-bottom: 1px solid #d9e7e4; padding: 0.75rem 0; }
.tool-faq summary { font-weight: 600; cursor: pointer; color: #2D5F5D; }
.tool-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tool-related-list a { display: block; padding: 1rem; border-radius: 12px; background: #f3f8f7; text-decoration: none; color: inherit; }
.tool-related-list strong { display: block; color: #2D5F5D; margin-bottom: 0.25rem; }
.tool-cta { text-align: center; background: #f3f8f7; }
.tool-download { list-style: none; padding: 0; margin: 1rem 0; display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.tool-download img { height: 40px; width: auto; }
.tool-cta-app-link a { color: #2D5F5D; font-weight: 600; }
/* Contraction timer widget */
.ct { display: grid; gap: 1.5rem; }
.ct-main { text-align: center; }
.ct-toggle { width: min(100%, 320px); min-height: 120px; margin: 0 auto; border: 0; border-radius: 24px; background: #2D5F5D; color: #fff; font-family: 'Epilogue', sans-serif; font-size: 1.35rem; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; box-shadow: 0 10px 30px rgba(45, 95, 93, 0.25); transition: transform 0.15s, background 0.2s; }
.ct-toggle:active { transform: scale(0.98); }
.ct-toggle--running { background: #b8536b; box-shadow: 0 10px 30px rgba(184, 83, 107, 0.3); }
.ct-toggle-time { font-size: 2.25rem; font-variant-numeric: tabular-nums; }
.ct-breathe { margin: 1.5rem auto 0; }
.ct-breathe-circle { width: 140px; height: 140px; margin: 0 auto 0.75rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8FB9A8, #2D5F5D); animation: ct-breathe 10s ease-in-out infinite; }
@keyframes ct-breathe { 0% { transform: scale(0.7); } 40% { transform: scale(1.15); } 100% { transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .ct-breathe-circle { animation: none; transform: scale(0.95); } }
.ct-breathe-title { margin: 0; font-weight: 600; color: #2D5F5D; }
.ct-breathe-cue { margin: 0.25rem 0 0; font-size: 1.5rem; font-family: 'Epilogue', sans-serif; color: #2D5F5D; }
.ct-bridge { margin: 0 auto; padding: 0.75rem 1rem; border-top: 1px solid rgba(45, 95, 93, 0.12); border-bottom: 1px solid rgba(45, 95, 93, 0.12); text-align: center; }
.ct-bridge-text { margin: 0 0 0.5rem; font-size: 0.9rem; color: #5a6664; }
.ct-download { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.ct-download img { height: 32px; width: auto; }
.ct-summary-title, .ct-history-title { font-family: 'Epilogue', sans-serif; font-size: 1.1rem; color: #2D5F5D; margin: 0 0 0.75rem; }
.ct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; }
.ct-stats div { background: #f3f8f7; border-radius: 12px; padding: 0.75rem; text-align: center; }
.ct-stats dt { font-size: 0.8rem; color: #6b7775; }
.ct-stats dd { margin: 0.25rem 0 0; font-size: 1.35rem; font-weight: 700; color: #2D5F5D; font-variant-numeric: tabular-nums; }
.ct-status { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 12px; font-weight: 600; }
.ct-status--observing { background: #eef2f1; color: #374140; }
.ct-status--close { background: #fff4e0; color: #7a4e00; }
.ct-status--met { background: #fde8ec; color: #8a2a44; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ct-btn { border: 1px solid #2D5F5D; background: #2D5F5D; color: #fff; border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 600; cursor: pointer; }
.ct-btn--quiet { background: transparent; color: #2D5F5D; }
.ct-btn:disabled { opacity: 0.45; cursor: default; }
.ct-empty { color: #6b7775; }
.ct-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ct-table th, .ct-table td { text-align: left; padding: 0.5rem 0.5rem; border-bottom: 1px solid #d9e7e4; }
.ct-edit { border: 0; background: none; color: #2D5F5D; text-decoration: underline; cursor: pointer; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .ct-stats { grid-template-columns: 1fr 1fr; } .ct-stats div:first-child { grid-column: 1 / -1; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* The footer's decorative particle layers are absolutely positioned but styles.css never positions the footer,
   so site-wide they anchor to the viewport and a particle floats over the timer button. Contain them here. */
footer { position: relative; overflow: hidden; } /* tools.css loads only on the tools index and tool pages */
