/* tilk.css – Tilkynningar + Færð pages (lead-written). Loaded after v2.css + olduspa.css. */
.tk .tag.t { color: #fde68a; border-color: rgba(253, 230, 138, .45); background: rgba(250, 204, 21, .08); }
.tk .os-hicon svg { width: 30px; height: 30px; }
[hidden] { display: none !important; }
.tk .badge { font-size: 13px; }

/* ---------- Tilkynningar: top row ---------- */
.tk-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tk-top > section { margin: 0 !important; }
.tk-latest { border-color: var(--cyan) !important; box-shadow: 0 0 0 1px rgba(61, 206, 246, .3), 0 0 30px -6px rgba(61, 206, 246, .5), var(--elev-2) !important; }
.tk-latest .os-hicon svg { color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.tk-ann h3 { margin: 0 0 6px; color: #fff !important; font-size: 24px !important; text-transform: none !important; letter-spacing: -.01em !important; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.tk-date { color: var(--cyan); font-weight: 650; }
.tk-body { white-space: pre-line; color: #eaf2fc; font-size: 17.5px; line-height: 1.6; }
.tk-src { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(61, 206, 246, .2); }
.tk-src a { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 650; font-size: 16.5px; text-decoration: none; }
.tk-src a svg { width: 18px; height: 18px; }

/* Staða siglinga */
.tk-port { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(61, 206, 246, .25); background: rgba(8, 26, 54, .55); margin-bottom: 14px; }
.tk-port b { display: block; color: #fff; font-size: 20px; }
.tk-port span { color: var(--text-2); font-size: 15px; }
.tk-port-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.tk-port.ok .tk-port-dot { background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.tk-port.warn { border-color: rgba(251, 191, 36, .55); background: rgba(80, 56, 8, .3); }
.tk-port.warn .tk-port-dot { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.tk-dir { margin: 0 0 12px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 76px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(61, 206, 246, .35); background: rgba(61, 206, 246, .08); }
.tk-chip b { color: #fff; font-size: 19px; }
.tk-chip small { color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.tk-chip.past { opacity: .5; }
.tk-chip.cancelled { border-color: rgba(251, 113, 133, .6); background: rgba(251, 113, 133, .1); }
.tk-chip.cancelled b { text-decoration: line-through; text-decoration-thickness: 2px; color: #fecdd3; }
.tk-chip.cancelled small { color: #fda4af; font-weight: 650; }
.tk-chip.moved { border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .1); }
.tk-chip.moved small { color: #fcd34d; font-weight: 650; }
.tk-note { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tk-note .tag { margin-right: 6px; }

/* timeline */
.tl-group + .tl-group { margin-top: 18px; }
.tl-day { margin: 0 0 10px; color: var(--cyan) !important; font-size: 15px !important; letter-spacing: .06em !important; text-transform: uppercase; }
ol.tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
ol.tl::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, rgba(61, 206, 246, .6), rgba(61, 206, 246, .1)); }
.tl-item { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin-bottom: 12px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0a2347; border: 1px solid var(--border-strong); color: var(--cyan); box-shadow: 0 0 12px -2px rgba(61, 206, 246, .6); }
.tl-dot svg { width: 18px; height: 18px; }
.tl-item.faerd .tl-dot { color: #86efac; border-color: rgba(134, 239, 172, .5); }
.tl-card { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(61, 206, 246, .2); background: rgba(8, 26, 54, .55); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-time { color: #fff; font-weight: 700; font-size: 17px; }
.tl-card h4 { margin: 6px 0; color: #fff; font-size: 18px; font-weight: 700; }
.tl-card h4 small { color: var(--muted); font-weight: 500; font-size: 14.5px; margin-left: 6px; }
.tl-card .tk-body { font-size: 16px; color: var(--text-2); }
.tl-card details summary { cursor: pointer; list-style: none; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.tl-card details summary::-webkit-details-marker { display: none; }
.tl-preview { white-space: pre-line; }
.tl-more { display: inline-block; margin-top: 6px; color: var(--cyan); font-weight: 650; }
.tl-card details[open] summary { display: none; }
.tl-link { display: inline-block; margin-top: 6px; color: var(--cyan); font-weight: 600; }

/* Strætó */
.tk-bus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tk-bus-card { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(61, 206, 246, .2); background: rgba(8, 26, 54, .55); }
.tk-bus-card h3 { margin: 0 0 6px; color: #fff !important; font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important; }
.tk-when { margin: 10px 0 4px; color: var(--cyan); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tk-bus-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-bus-card li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--text-2); font-size: 15.5px; }
.tk-bus-card li b, .tk-times b, .tk-bus-card p b { color: #fff; font-size: 16.5px; }
.tk-route { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: #f5c400; color: #111; font-weight: 800; font-size: 13px; }
.tk-bus-card .arrow { color: var(--muted); }
.tk-bus-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) { .tk-top { grid-template-columns: 1fr; } .tk-bus-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .tk-ann h3 { font-size: 21px !important; }
  .tk-body { font-size: 17px; }
  .tk-bus-grid { grid-template-columns: 1fr; }
  .tk-chip { min-width: 68px; }
  
  
  
  .tk .os-pill { font-size: 15px; padding: 0 10px; }
}
.tl-card details > summary { display: block !important; color: var(--text-2) !important; font-weight: 400 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.tl-card details > summary::before, .tl-card details > summary::after { content: none !important; display: none !important; }
.tl-card details > summary .tl-more { display: block; }
.tl-card details[open] > summary { display: none !important; }
.tl-card .tl-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }

/* [round 13] departures moved to Þorlákshöfn */

/* ===== [round 24] ===== */
/* newest notice folded like the timeline */
.tk-ann details.tk-fold > summary { display: block !important; color: #eaf2fc !important; font-weight: 400 !important; padding: 0 !important; background: none !important; border: 0 !important; cursor: pointer; }
.tk-ann details.tk-fold > summary::before, .tk-ann details.tk-fold > summary::after { content: none !important; display: none !important; }
.tk-ann details.tk-fold[open] > summary { display: none !important; }
.tk-preview { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; font-size: 17.5px; line-height: 1.6; }
.page-tilkynningar .tl-more { display: inline-flex !important; align-items: center; min-height: 44px; margin-top: 2px !important; }
.tk-src a { min-height: 44px; }
.page-tilkynningar .tl-link { display: inline-flex !important; align-items: center; min-height: 44px; margin-top: 0 !important; }
/* Staða siglinga: Landeyjahöfn / Þorlákshöfn groups */
.tk-grp { margin: 0 0 6px; }
.tk-grp + .tk-grp { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(61, 206, 246, .18); }
.tk-grp-h { margin: 0 0 8px; color: var(--cyan) !important; font-size: 15px !important; letter-spacing: .06em !important; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.tk-grp.thor .tk-grp-h { color: #c4b5fd !important; }
.tk-grp-h .tag { text-transform: none; letter-spacing: 0; }
.tk-dir h4 { margin: 0 0 8px; color: #fff; font-size: 16.5px; font-weight: 700; }
.tk-chip.replaced { border-color: rgba(167, 139, 250, .55); background: rgba(167, 139, 250, .08); }
.tk-chip.replaced b { text-decoration: line-through; text-decoration-thickness: 2px; color: #ddd6fe; }
.tk-chip.replaced small { color: #c4b5fd; font-weight: 650; }
.tk-chip.thor.past { opacity: .5; }
/* Strætó: each leg on one line; links as buttons */
.tk-bus-card li { flex-wrap: nowrap; align-items: center; gap: 8px; }
.tk-leg { white-space: nowrap; }
.tk-ext { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.tk-ext a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(61, 206, 246, .35); background: rgba(61, 206, 246, .08); color: var(--cyan); font-weight: 650; text-decoration: none; }
@media (max-width: 700px) {
  .tk-preview { -webkit-line-clamp: 5; font-size: 17px; }
  .tk-bus-card { padding: 12px 12px; }
  .tk-bus-card li { gap: 6px; font-size: 15px; }
  .tk-bus-card li b { font-size: 16px; }
  .tk-route { min-width: 28px; padding: 0 5px; }
}
@media (max-width: 420px) {
  /* Strætó on small phones: flat lists inside the panel so "Selfoss 08:54 → Landeyjahöfn 10:06" fits on one line */
  .tk .tk-bus.panel { padding-left: 12px !important; padding-right: 12px !important; }
  .tk-bus-grid { gap: 4px; }
  .tk-bus-card { padding: 10px 0 6px; border: 0; border-top: 1px solid rgba(61, 206, 246, .2); border-radius: 0; background: none; }
  .tk-bus-card li { gap: 6px; }
}
@media (max-width: 380px) { .tk-bus-card li { gap: 5px; font-size: 14.5px; } .tk-bus-card li b { font-size: 15.5px; } }
/* [r31] */
.tk-note.tk-end { color: var(--text); font-weight: 600; }
