/* Industry Directory */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ind-filter { margin-top: 1.25rem; grid-template-columns: minmax(150px, 220px) 1fr auto auto; }
.ind-crumb { margin: 0 0 .5rem; font-weight: 600; }
.ind-subnav { margin-top: 1.25rem; }

.ind-cat { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ind-cat:hover { border-color: #c9cfdc; box-shadow: 0 10px 28px rgba(9, 13, 21, .08); color: inherit; }
.ind-cat h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.ind-cat p { margin: 0 0 .8rem; color: var(--ink-soft); }
.ind-count { font-size: .85rem; font-weight: 700; color: var(--electric); }

.ind-sub { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.ind-sub h2 { font-size: 1.4rem; margin-bottom: 1rem; }

.ind-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; }
.ind-card h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.ind-card h3 a { color: var(--ink); text-decoration: none; }
.ind-card h3 a:hover { color: var(--electric); text-decoration: underline; }
.ind-meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: 0 0 .6rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.ind-desc { margin: 0 0 .75rem; }
.ind-when, .ind-specs { margin: 0 0 .75rem; font-size: .95rem; }
.ind-details { margin: 0 0 .75rem; font-size: .92rem; }
.ind-details li { margin-bottom: .2rem; word-break: break-word; }
.ind-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: auto 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); }
.ind-foot a { color: var(--ink-soft); }
.ind-foot a:hover { color: var(--electric); }

.ind-note { max-width: 70ch; margin-top: 1.5rem; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .ind-filter { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
}

.ind-state { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 .8rem; font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.ind-state::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ind-sub > .ind-state:first-of-type { margin-top: 0; }

/* ---- Magazine layout ---- */
.ind-section { padding-top: 1.5rem; }

/* "You are here" bar, pinned under the site header */
.ind-here { position: sticky; top: var(--header-h); z-index: 60; background: var(--midnight); color: #fff; border-bottom: 3px solid var(--electric); box-shadow: 0 6px 18px rgba(9, 13, 21, .18); }
.ind-here-inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem; padding-top: .7rem; padding-bottom: .7rem; font-size: .95rem; }
.ind-here-cat { opacity: .65; }
.ind-here-sub { font-weight: 600; }
.ind-here-sep { opacity: .4; }
.ind-here-state { font-size: 1.15rem; letter-spacing: .01em; }
.ind-here-count { margin-left: auto; font-size: .8rem; opacity: .6; }

.ind-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.25rem; align-items: start; }

/* Side index: vertical tabs */
.ind-rail { position: sticky; top: calc(var(--header-h) + 64px); max-height: calc(100vh - var(--header-h) - 84px); overflow-y: auto; overscroll-behavior: contain; padding-right: .25rem; scrollbar-width: thin; }
.ind-jump summary { display: none; }
.ind-rail-group { margin-bottom: 1.1rem; }
.ind-rail-sub { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); }
.ind-rail-sub span { font-weight: 600; opacity: .55; }
.ind-rail-sub.is-active { color: var(--electric); border-color: var(--electric); }
.ind-rail ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.ind-rail ul a { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline; gap: .5rem; padding: .4rem .6rem; color: var(--ink-soft); text-decoration: none; border-left: 4px solid transparent; font-size: .9rem; }
.ind-rail ul a b { font-size: .9rem; color: var(--ink); }
.ind-rail ul a em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.ind-rail ul a span { font-size: .78rem; opacity: .6; }
.ind-rail ul a:hover { background: rgba(9, 13, 21, .05); color: var(--ink); }
.ind-rail ul a.is-active { border-left-color: var(--electric); background: rgba(9, 13, 21, .06); color: var(--ink); font-weight: 700; }
.ind-rail ul a.is-active b { color: var(--electric); }

/* Body */
.ind-main { min-width: 0; }
.ind-sub { margin-bottom: 3rem; scroll-margin-top: calc(var(--header-h) + 70px); }
.ind-sub > h2 { margin: 0 0 1rem; padding-bottom: .5rem; font-size: 1.6rem; border-bottom: 3px solid var(--ink); }
.ind-st { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 70px); }
.ind-state { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 .9rem; padding: .35rem .7rem; background: var(--ink); color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ind-state::after { display: none; }
.ind-state em { margin-left: auto; font-style: normal; font-weight: 600; opacity: .6; font-size: .8rem; letter-spacing: 0; }

.ind-cols { list-style: none; margin: 0; padding: 0; column-width: 240px; column-gap: 2rem; column-rule: 1px solid var(--line); }
.ind-entry { break-inside: avoid; margin: 0 0 1rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.4; }
.ind-entry p { margin: 0; }
.ind-name { font-weight: 800; font-size: .98rem; line-height: 1.25; margin-bottom: .1rem !important; }
.ind-name a { color: var(--ink); text-decoration: none; }
.ind-name a:hover { color: var(--electric); text-decoration: underline; }
.ind-line { color: var(--ink-soft); word-break: break-word; }
.ind-where { font-weight: 600; }
.ind-catline { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ind-blurb { margin-top: .15rem !important; }
.ind-line a { color: var(--ink-soft); }
.ind-line a:hover { color: var(--electric); }
.ind-web a { color: var(--electric); }
.ind-cols-search { column-width: 260px; }

@media (max-width: 900px) {
  .ind-layout { grid-template-columns: 1fr; gap: 1rem; }
  .ind-rail { position: static; max-height: none; overflow: visible; }
  .ind-jump { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
  .ind-jump summary { display: block; cursor: pointer; padding: .7rem 1rem; font-weight: 700; }
  .ind-jump nav { padding: 0 .5rem .8rem; max-height: 55vh; overflow-y: auto; }
  .ind-here-count { display: none; }
  .ind-sub, .ind-st { scroll-margin-top: calc(var(--header-h) + 60px); }
}

/* Homepage search: hidden fields and panes must actually disappear */
.field[hidden], [data-pane][hidden] { display: none !important; }
@media (min-width: 901px) {
  .search-fields:has([data-only][hidden]) { grid-template-columns: 1fr 1.8fr auto; }
}
.panel-results > [data-pane] > .result-count { margin-top: 1.25rem; }

/* Industry index: simple list */
.ind-list { margin: 0 0 2.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ind-list li { border-bottom: 1px solid var(--line); }
.ind-list a { display: flex; align-items: baseline; gap: .4rem 1.5rem; flex-wrap: wrap; padding: .95rem .25rem; color: inherit; text-decoration: none; }
.ind-list a::after { content: "\2192"; margin-left: auto; color: var(--ink-soft); transition: transform .15s ease, color .15s ease; }
.ind-list a:hover { color: inherit; background: var(--grey-50); }
.ind-list a:hover::after { color: var(--electric); transform: translateX(3px); }
.ind-list-name { flex: 0 0 18rem; font: 600 1.1rem var(--font-display); }
.ind-list-blurb { flex: 1 1 18rem; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 700px) {
  .ind-list-name { flex-basis: 100%; }
  .ind-list-blurb { flex-basis: calc(100% - 2rem); }
  .ind-list a::after { margin-left: 0; position: absolute; right: .5rem; }
  .ind-list a { position: relative; padding-right: 2rem; }
}
