/* sleepless-baby.com — content + tools */

.sb-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0; }
.sb-cat-card { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.4rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; display: block; }
.sb-cat-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); text-decoration: none; }
.sb-cat-card-icon { font-size: 2rem; margin-bottom: .3rem; }
.sb-cat-card h3 { margin: 0 0 .2rem; color: var(--accent); font-size: 1.05rem; }
.sb-cat-card p  { color: #555; font-size: .85rem; margin: 0; line-height: 1.45; }
.sb-cat-card .ct { color: #888; font-size: .8rem; margin-top: .3rem; }

.sb-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin: 1rem 0; }
.sb-art-card { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.15rem 1.3rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; }
.sb-art-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); }
.sb-art-card .cat { color: #888; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.sb-art-card h3 { margin: .3rem 0 .35rem; color: var(--accent); font-size: 1.05rem; line-height: 1.3; }
.sb-art-card p { color: #555; font-size: .9rem; margin: 0; line-height: 1.5; }

.sb-article { max-width: 720px; margin: 0 auto; }
.sb-article-cat { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.sb-article h1 { margin: .2rem 0 1rem; font-size: 1.9rem; line-height: 1.25; }
.sb-article .meta { color: #999; font-size: .85rem; margin-bottom: 2rem; }
.sb-article h2 { margin: 2rem 0 .8rem; font-size: 1.3rem; color: var(--accent); }
.sb-article p, .sb-article li { line-height: 1.65; color: #333; }
.sb-article p { margin: .8rem 0; }
.sb-article ul, .sb-article ol { padding-left: 1.5em; }
.sb-article li { margin: .35rem 0; }

.sb-article-related { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem 1.4rem; margin-top: 2rem; }
.sb-article-related h3 { margin-top: 0; }

.sb-disclaimer { background: #fff3cd; border: 1px solid #ffe69c; color: #5a4500;
  border-radius: 8px; padding: .9rem 1.1rem; font-size: .9rem; margin: 1rem 0; }

/* Tools */
.sb-tool { background: linear-gradient(135deg, #e8f0fe, #fff); border: 2px solid #6c8cff;
  border-radius: 12px; padding: 1.5rem; margin: 0 0 2rem; }
.sb-tool h2 { margin-top: 0; }
.sb-form { display: grid; gap: .8rem; }
.sb-form label { display: flex; flex-direction: column; gap: .25rem; color: #555; font-size: .9rem; }
.sb-form input, .sb-form select {
  padding: .65rem .8rem; border: 2px solid var(--border); border-radius: 6px;
  font-size: 1.05rem; font-family: monospace; }
.sb-form input:focus, .sb-form select:focus { outline: none; border-color: var(--accent); }

.sb-result { background: linear-gradient(135deg, #e8f0fe, #fff); border: 2px solid var(--accent);
  border-radius: 12px; padding: 1.5rem; margin: 1rem 0; text-align: center; }
.sb-result .label { color: #666; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.sb-result .big { font-size: 2.5rem; font-weight: 800; color: var(--accent);
  font-family: monospace; font-variant-numeric: tabular-nums; line-height: 1; margin: .4rem 0; }
.sb-result .sub { color: #555; font-size: .95rem; margin-top: .4rem; }

/* Soothing timer */
.sb-timer { background: linear-gradient(135deg, #fef3c7, #fff); border: 2px solid #fbbf24;
  border-radius: 12px; padding: 2rem; margin: 1rem 0; text-align: center; }
.sb-timer .clock { font-size: 5rem; font-family: monospace; font-weight: 800; color: var(--accent);
  line-height: 1; font-variant-numeric: tabular-nums; }
.sb-timer .lbl { color: #666; font-size: .9rem; margin: .5rem 0 1rem; }
.sb-timer .step { color: #555; font-size: .9rem; margin: .4rem 0; }
.sb-timer .buttons button { background: var(--accent); color: #fff; border: none;
  padding: .7rem 1.4rem; margin: .2rem; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 1rem; }
.sb-timer .buttons button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.sb-method-toggle { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 1rem 0; }
.sb-method-toggle button { background: #fff; border: 1px solid var(--border);
  padding: .4rem .9rem; border-radius: 18px; cursor: pointer; font-size: .9rem; }
.sb-method-toggle button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Sleep diary */
.sb-diary-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .55rem .8rem;
  margin: .3rem 0; align-items: center; font-size: .9rem; }
.sb-diary-row .date { font-family: monospace; color: var(--accent); font-weight: 600; }
.sb-diary-row .wake-count { color: #d4504e; }
.sb-diary-row .delete { background: transparent; border: none; color: #999; cursor: pointer; }
.sb-diary-row .delete:hover { color: #d4504e; }
.sb-diary-summary { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.2rem; margin: 1rem 0; }
.sb-diary-summary .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; }
.sb-diary-summary .num { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-family: monospace; }
.sb-diary-summary .lbl { color: #888; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
