/* /websites: the Harley.Digital website library. Loaded after style.css + guides.css, used only by websites.html. */

.web-wrap { padding-top: 56px; padding-bottom: 96px; }

/* ---------- header ---------- */
.web-head { max-width: 760px; }
.web-title { margin-top: 18px; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; color: var(--ink); }
.web-sub { margin-top: 14px; max-width: 560px; font-size: 1.05rem; line-height: 1.55; color: var(--muted-strong); }
.web-updated { margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }

/* ---------- search + filters ---------- */
.web-tools { margin-top: 34px; }
.web-search { position: relative; display: flex; align-items: center; height: 62px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ink) border-box; box-shadow: 0 18px 40px -26px rgba(10, 10, 11, .55); }
.web-search:focus-within { box-shadow: 0 0 0 4px rgba(10, 10, 11, .14), 0 18px 40px -22px rgba(10, 10, 11, .6); }
.web-search-ico { flex: none; width: 22px; height: 22px; margin-left: 22px; color: var(--muted); }
.web-input { flex: 1; min-width: 0; height: 100%; padding: 0 22px 0 14px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.web-input::placeholder { color: var(--muted); opacity: 1; }
.web-input::-webkit-search-cancel-button { cursor: pointer; }

.web-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; padding-left: 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.web-try button { padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted-strong); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.web-try button:hover { border-color: var(--ink); color: var(--ink); }

.web-cats { justify-content: flex-start; margin-top: 22px; }

.web-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.web-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #f5f5f5; }
.web-seg button { padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--muted-strong); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.web-seg button:hover { color: var(--ink); }
.web-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 11, .14); }
.web-count { margin-left: auto; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.web-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.web-sort select { padding: 7px 28px 7px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236B6B76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px; font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; }
.web-sort select:focus-visible, .web-seg button:focus-visible { outline: 3px solid rgba(10, 10, 11, .45); outline-offset: 2px; }

/* ---------- sections ---------- */
.web-all { margin-top: 46px; }
.web-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.web-empty { margin-top: 26px; padding: 26px; border: 1.5px dashed var(--border); border-radius: 20px; text-align: center; font-size: 0.95rem; color: var(--muted-strong); }
.web-empty button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.web-more-wrap { margin-top: 26px; text-align: center; }
.web-more { padding: 12px 26px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.web-more:hover { border-color: var(--ink); color: var(--ink); }
.web-nojs { margin-top: 14px; font-size: 0.9rem; color: var(--muted-strong); }
.web-all noscript ul { margin: 6px 0 14px 20px; font-size: 0.9rem; line-height: 1.7; }
.web-all noscript h2 { margin-top: 16px; font-size: 1.1rem; }

/* ---------- cards ---------- */
.web-card { position: relative; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "logo main side" "logo desc desc"; gap: 6px 14px; align-items: start; padding: 18px; border: 1.5px solid var(--border); border-radius: 20px; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.web-card:hover, .web-card:focus-within { border-color: rgba(10, 10, 11, .45); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(10, 10, 11, .55); }
.web-logo { grid-area: logo; position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #f5f5f5; overflow: hidden; }
.web-logo img { position: relative; z-index: 1; width: 26px; height: 26px; object-fit: contain; }
.web-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; font-weight: 900; background: var(--ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.web-main { grid-area: main; min-width: 0; }
.web-name { font-size: 1.06rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.web-name a { color: var(--ink); }
.web-name a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; } /* whole card is the click target */
.web-meta { margin-top: 3px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.web-desc { grid-area: desc; margin-top: 2px; font-size: 0.92rem; line-height: 1.5; color: var(--muted-strong); }
.web-side { grid-area: side; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.web-price { padding: 4px 10px; border-radius: 999px; background: #f5f5f5; font-size: 0.7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-strong); white-space: nowrap; }
.web-price.free { background: rgba(107, 107, 114, .12); color: #6b6b72; }
.web-price.free-plan { background: rgba(10, 10, 11, .1); color: var(--ink); }
.web-price.paid { background: #f5f5f5; color: var(--muted-strong); }
.web-save { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.web-save:hover { background: #f5f5f5; color: var(--ink); }
.web-save svg { width: 18px; height: 18px; }
.web-save[aria-pressed="true"] { color: var(--ink); }
.web-save[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .web-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .web-wrap { padding-top: 34px; padding-bottom: 72px; }
  .web-search { height: 56px; }
  .web-search-ico { margin-left: 18px; width: 20px; height: 20px; }
  .web-input { font-size: 1rem; padding-right: 16px; }
  .web-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; padding-bottom: 4px; scrollbar-width: none; }
  .web-cats::-webkit-scrollbar { display: none; }
  .web-cats .filter-pill { flex: none; }
  .web-bar { gap: 10px 12px; }
  .web-seg { order: 1; width: 100%; }
  .web-seg button { flex: 1; padding: 9px 6px; }
  .web-count { order: 2; margin-left: 0; }
  .web-sort { order: 3; margin-left: auto; }
  .web-card { grid-template-columns: 40px 1fr; grid-template-areas: "logo main" "desc desc"; padding: 14px; gap: 8px 12px; }
  .web-side { position: absolute; top: 12px; right: 12px; }
  .web-name { padding-right: 112px; font-size: 1rem; }
  .web-logo { width: 40px; height: 40px; }
  .web-desc { margin-top: 0; font-size: 0.9rem; }
  .web-name a::after { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .web-card, .web-card:hover { transition: none; transform: none; }
}

.web-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.web-vh::before { display: none; }

/* saved section (above the list, this browser only) */
.web-saved { margin-top: 40px; padding-bottom: 8px; }
.web-saved[hidden] { display: none; }
.web-saved-head { display: flex; align-items: baseline; gap: 14px; }
.web-saved-head .section-heading { margin: 0; }
.web-saved-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.web-saved-clear { margin-left: auto; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.web-saved-clear:hover { color: var(--ink); }
.web-saved .web-grid { margin-top: 16px; }
.web-saved + .web-all { margin-top: 40px; }

.web-more.is-auto { display: none; }

/* header: centered like the Resources page */
.web-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.web-head .hero-badge { margin-bottom: 22px; }
.web-title { margin-top: 0; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; }
.web-sub { margin: 18px auto 0; max-width: 560px; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.web-updated { margin-top: 12px; }

/* ---------- category colours: one occasion colour per category, small dots only ---------- */
[data-cat="AI"] { --cat: var(--winter); }
[data-cat="Productivity"] { --cat: var(--spring); }
[data-cat="Creator"] { --cat: var(--summer); }
[data-cat="Learning"] { --cat: var(--fall); }
[data-cat="Career"] { --cat: var(--launch); }
[data-cat="Design"] { --cat: var(--winter); }
[data-cat="Entertainment"] { --cat: var(--spring); }
[data-cat="Books"] { --cat: var(--summer); }
[data-cat="Utilities"] { --cat: var(--fall); }
.filter-pill[data-cat="All"]::before { display: none; }
.web-meta[data-cat] { display: flex; align-items: center; gap: 6px; }
.web-meta[data-cat]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }

/* "Websites" sits on a rounded block, like the home hero caption */
.web-title .web-word { display: inline-block; padding: .06em .22em .04em; border-radius: 16px; background: var(--launch); color: #fff; }
