/* Clock7 Tea Timer (light theme, consistent with other Clock7 portals) */
:root{
  --tt-max: 980px;
  --tt-border: rgba(0,0,0,.10);
  --tt-muted: rgba(0,0,0,.62);
  --tt-muted2: rgba(0,0,0,.48);
  --tt-card: #fff;
  --tt-soft: rgba(0,0,0,.03);
  --tt-shadow: 0 10px 30px rgba(0,0,0,.08);
  --tt-radius: 18px;
}

.tt-wrap{
  max-width: var(--tt-max);
  margin: 0 auto;
  padding: 82px 16px 48px;
}

.tt-hero{
  text-align:center;
}

.tt-kicker{
  display:inline-block;
  font-weight:700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tt-muted);
  background: var(--tt-soft);
  padding: 6px 10px;
  border: 1px solid var(--tt-border);
  border-radius: 999px;
  margin-bottom: 10px;
}

.tt-hero h1{
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.05;
  margin: 8px 0 10px;
}

.tt-lead{
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--tt-muted);
  font-size: 15px;
}

.tt-clock{
  display:inline-block;
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--tt-shadow);
  min-width: min(520px, 92vw);
}

.tt-now{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .02em;
}

.tt-date{
  margin-top: 6px;
  color: var(--tt-muted2);
  font-size: 14px;
}

.tt-big{
  margin-top: 14px;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: .06em;
}

.tt-sub{
  margin-top: 6px;
  color: var(--tt-muted);
  font-size: 14px;
}

.tt-grid{
  margin-top: 20px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  text-align:left;
  align-items:start;
}

@media (max-width: 880px){
  .tt-grid{ grid-template-columns: 1fr; }
}

.tt-card{
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 14px;
  box-shadow: var(--tt-shadow);
}

.tt-card h2{
  font-size: 16px;
  margin: 0 0 8px;
}
.tt-card p{
  margin: 0 0 10px;
  color: var(--tt-muted);
  font-size: 13px;
}

.tt-preset-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px){
  .tt-preset-grid{ grid-template-columns: 1fr; }
}

.tt-preset{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  text-decoration:none;
  color: inherit;
}
.tt-preset:hover{ background: rgba(0,0,0,.04); }
.tt-preset .t{
  font-weight: 800;
  color: rgba(0,0,0,.75);
}
.tt-preset .m{
  font-size: 18px;
  font-weight: 900;
  color: rgba(0,0,0,.65);
}

.tt-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--tt-border);
  border-radius: 999px;
  background: rgba(0,0,0,.02);
  text-decoration:none;
  color: rgba(0,0,0,.72);
  font-size: 13px;
  font-weight: 700;
}
.tt-chip:hover{ background: rgba(0,0,0,.04); }

.tt-actions{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 10px;
  margin-top: 14px;
}

.tt-btn{
  border: 1px solid var(--tt-border);
  background: rgba(0,0,0,.02);
  color: rgba(0,0,0,.78);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 800;
}
.tt-btn.primary{
  background: rgba(0,0,0,.85);
  color: #fff;
  border-color: rgba(0,0,0,.85);
}
.tt-btn.danger{
  background: rgba(200, 40, 40, .92);
  border-color: rgba(200, 40, 40, .92);
  color: #fff;
}
.tt-btn:disabled{ opacity:.55; cursor:not-allowed; }

.tt-controls{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align:left;
}
@media (max-width: 880px){
  .tt-controls{ grid-template-columns: 1fr; }
}

.tt-field{
  background: rgba(0,0,0,.02);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 12px;
}
.tt-field label{
  display:block;
  font-size: 12px;
  color: var(--tt-muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.tt-field select,
.tt-field input[type="number"]{
  width: 100%;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  padding: 10px 10px;
  font-weight: 700;
  background: #fff;
}

.tt-toggle{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0,0,0,.72);
  font-size: 13px;
}

.tt-math{
  margin-top: 10px;
  color: var(--tt-muted);
  font-size: 13px;
}

.tt-tips{
  margin-top: 14px;
  text-align:left;
  background: rgba(0,0,0,.02);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 14px;
}
.tt-tips h3{ margin:0 0 8px; font-size: 14px; }
.tt-tips ul{ margin: 0; padding-left: 18px; color: rgba(0,0,0,.70); }
.tt-tips li{ margin: 6px 0; }

.tt-seo{
  margin-top: 18px;
  text-align:left;
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 16px;
  box-shadow: var(--tt-shadow);
}
.tt-seo h2{ margin:0 0 8px; font-size: 16px; }
.tt-seo p{ margin:0 0 10px; color: var(--tt-muted); }
.tt-cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 880px){
  .tt-cols{ grid-template-columns: 1fr; }
}

/* Modal */
.tt-modal-overlay[hidden]{
  /* Some global CSS resets override the native [hidden] behavior.
     Force-hide the overlay when the hidden attribute is present. */
  display: none !important;
}

.tt-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index: 9999;
}
.tt-modal{
  width: min(560px, 92vw);
  background: #0b0b0c;
  color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 16px;
}
.tt-modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.tt-modal-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.tt-modal-close{
  border: 0;
  background: rgba(255,255,255,.10);
  color:#fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
  cursor:pointer;
}
.tt-modal h2{ margin: 12px 0 6px; font-size: 26px; }
.tt-modal p{ margin: 0 0 12px; color: rgba(255,255,255,.80); }
.tt-modal-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tt-modal .tt-btn{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.tt-modal .tt-btn.primary{
  background: #fff;
  color: #000;
  border-color: #fff;
}
.tt-modal-note{ margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.65); }

/* Simple page layout for /tea-types and guide */
.tt-page{
  max-width: var(--tt-max);
  margin: 0 auto;
  padding: 22px 16px 48px;
}
.tt-page h1{
  font-size: clamp(28px, 3vw, 40px);
  line-height:1.08;
  margin: 8px 0 10px;
}
.tt-page .lead{
  color: var(--tt-muted);
  margin-bottom: 16px;
}
.tt-page .two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 880px){ .tt-page .two{ grid-template-columns: 1fr; } }
.tt-type-card{
  background:#fff;
  border:1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  padding: 14px;
  box-shadow: var(--tt-shadow);
  text-decoration:none;
  color: inherit;
}
.tt-type-card:hover{ background: rgba(0,0,0,.02); }
.tt-type-card .k{ color: var(--tt-muted2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing:.06em; }
.tt-type-card .t{ font-size: 26px; font-weight: 900; margin: 4px 0 6px; color: rgba(0,0,0,.80); }
.tt-type-card .d{ color: var(--tt-muted); margin: 0; }

.tt-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  background:#fff;
  box-shadow: var(--tt-shadow);
}
.tt-table th, .tt-table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--tt-border);
  text-align:left;
  font-size: 13px;
}
.tt-table th{
  background: rgba(0,0,0,.03);
  font-weight: 900;
}
.tt-table tr:last-child td{ border-bottom: 0; }


/* --- Modal safety overrides (ensure overlay sits on top of everything) --- */
.tt-modal-overlay{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
}
.tt-modal-overlay[hidden]{ display:none !important; }
.tt-modal{
  position: relative;
  z-index: 1000000;
}








/* =========================================================
   Light Alarm Modal (match Egg Timer look)
   Paste at END of tea-timer.css
========================================================= */

.tt-modal-overlay{
  background: rgba(0,0,0,.55) !important;
}

.tt-modal{
  background: #fff !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.35) !important;
  border-radius: 18px !important;
}

.tt-modal-badge{
  background: rgba(0,0,0,.06) !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.10) !important;
}

.tt-modal h2,
.tt-modal p{
  color: #111 !important;
}

.tt-modal-close{
  background: rgba(0,0,0,.06) !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
}

.tt-modal .tt-btn{
  background: rgba(0,0,0,.06) !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
}

.tt-modal .tt-btn.primary{
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.tt-modal .tt-btn.danger{
  background: rgba(200,40,40,.95) !important;
  color: #fff !important;
  border-color: rgba(200,40,40,.95) !important;
}




