/* ===================================================================
   iCloud Tools & Help hub (category-details, slug icloud-tools)

   Sits inside the category page's .tp-body, so it does not repaint the
   page background or add its own outer gutter. Official Apple links use
   a deliberately different, neutral treatment (outlined, grey, "leaves
   A2Z Tools" wording) so they can never be mistaken for our tools.
   =================================================================== */

.ich.bm { background: transparent; padding-bottom: 8px; }
.ich > * + * { margin-top: 28px; }
.ich h2 { font-size: clamp(1.2rem, 2.6vw, 1.55rem); margin: 0 0 6px; }
.ich h3 { font-size: 1rem; margin: 0 0 6px; }

/* ---------- Intro + official ---------- */
.ich-intro { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .ich-intro { grid-template-columns: 1fr; } }

.ich-intro-main {
    position: relative; overflow: hidden; padding: 24px; border-radius: var(--bm-r-lg);
    background: var(--bm-surface); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow);
}
.ich-intro-main::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--ic-accent), var(--ic-t1), var(--ic-t2));
}
.ich-eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-accent-strong); }
.ich-lead { font-size: 1rem; line-height: 1.6; color: var(--bm-ink-2); margin: 6px 0 16px; }

.ich-cando { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.ich-cando-col { padding: 14px; border-radius: 14px; }
.ich-cando-col ul { margin: 0; padding-left: 18px; font-size: .9rem; line-height: 1.55; }
.ich-cando-col.is-can { background: var(--ic-ok-soft); color: #0f5a35; }
.ich-cando-col.is-can h3 { color: var(--ic-ok); }
.ich-cando-col.is-cannot { background: var(--ic-bad-soft); color: #7d1f1f; }
.ich-cando-col.is-cannot h3 { color: var(--ic-bad); }

.ich-official { padding: 20px; border-radius: var(--bm-r-lg); border: 2px dashed #b7bdc9; background: #f4f5f7; }
.ich-official h2 { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; color: #2b3140; }
.ich-official-note { margin: 0 0 12px; font-size: .86rem; color: #4a5263; }
.ich-official-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ich-official-link {
    display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px;
    background: #fff; border: 1px solid #d6dae2; color: #1d2330; text-decoration: none;
    transition: border-color .16s, transform .16s var(--bm-ease);
}
.ich-official-link:hover { border-color: #6b7385; transform: translateX(2px); color: #1d2330; }
.ich-official-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.ich-official-top strong { font-size: .95rem; }
.ich-official-top strong::after { content: " \2197"; font-weight: 400; color: #6b7385; }
.ich-official-badge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: #e3e6ec; color: #394050; }
.ich-official-desc { font-size: .82rem; color: #4a5263; line-height: 1.45; }

/* ---------- Finder ---------- */
.ich-finder { position: sticky; top: 76px; z-index: 5; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--bm-bg) 88%, transparent); backdrop-filter: blur(8px); }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .ich-finder { background: var(--bm-bg); } }
@media (max-width: 767px) { .ich-finder { position: static; padding: 0; background: none; backdrop-filter: none; } }
.ich-search { position: relative; display: flex; align-items: center; }
.ich-search > i { position: absolute; left: 16px; color: var(--bm-ink-3); pointer-events: none; }
.ich-search input {
    width: 100%; min-height: 54px; padding: 0 48px 0 44px; border-radius: 16px; border: 2px solid var(--bm-line);
    background: var(--bm-surface); color: var(--bm-ink); font: inherit; font-size: 1rem; box-shadow: var(--bm-shadow);
}
.ich-search input:focus { border-color: var(--bm-accent); outline: 3px solid var(--bm-accent-ring); outline-offset: 0; }
.ich-clear { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--bm-line-2); color: var(--bm-ink-2); cursor: pointer; }
.ich-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ich-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink-2); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: background-color .16s, color .16s, border-color .16s;
}
.ich-chip span { font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--bm-line-2); color: var(--bm-ink-3); }
.ich-chip:hover { border-color: var(--bm-accent); color: var(--bm-accent-strong); }
.ich-chip.is-active { background: var(--bm-ink); border-color: var(--bm-ink); color: #fff; }
.ich-chip.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.ich-count { margin: 8px 0 0; font-size: .85rem; color: var(--bm-ink-3); }

/* ---------- Sections and cards ---------- */
.ich-section { scroll-margin-top: 170px; }
.ich-section-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ich-section-head p { margin: 0; color: var(--bm-ink-3); font-size: .92rem; }
.ich-section-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--bm-accent-soft); color: var(--bm-accent-strong); font-size: 1.25rem; }

.ich-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.ich-card a {
    position: relative; display: flex; gap: 12px; height: 100%; padding: 16px; border-radius: 16px;
    background: var(--bm-surface); border: 1px solid var(--bm-line); color: var(--bm-ink-2); text-decoration: none;
    transition: transform .18s var(--bm-ease), box-shadow .18s var(--bm-ease), border-color .18s;
}
.ich-card a:hover { transform: translateY(-3px); border-color: var(--bm-accent); box-shadow: var(--bm-shadow-lg); color: var(--bm-ink-2); }
.ich-card-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--bm-accent-soft), #fff); color: var(--bm-accent-strong); font-size: 1.15rem; border: 1px solid var(--bm-line); }
.ich-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.ich-card-body strong { color: var(--bm-ink); font-size: 1rem; line-height: 1.3; }
.ich-card-lead { font-size: .86rem; line-height: 1.5; color: var(--bm-ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ich-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.ich-card-go { color: var(--bm-accent-strong); transition: transform .18s var(--bm-ease); }
.ich-card a:hover .ich-card-go { transform: translateX(4px); }

.ich-empty { padding: 22px; border-radius: 16px; border: 1px dashed var(--bm-line); background: var(--bm-surface); text-align: center; }
.ich-empty p { margin: 4px 0; }

/* ---------- Privacy + related ---------- */
.ich-privacy { padding: 22px; border-radius: var(--bm-r-lg); background: var(--bm-ink); color: #d9deea; }
.ich-privacy h2 { color: #fff; }
.ich-privacy-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); margin-top: 10px; }
.ich-privacy h3 { color: #fff; }
.ich-privacy p { margin: 0; font-size: .9rem; line-height: 1.55; }
.ich-privacy-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; margin-bottom: 8px; }

.ich-related-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.ich-related-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bm-line); background: var(--bm-surface); text-decoration: none; color: var(--bm-ink-3); font-size: .84rem; }
.ich-related-list a strong { color: var(--bm-ink); font-size: .95rem; }
.ich-related-list a:hover { border-color: var(--bm-accent); }

.ich [hidden] { display: none !important; }

@media (pointer: coarse) { .ich-chip, .ich-clear { min-height: 44px; } }
