@font-face {
  font-family: Album;
  src: url('assets/iransans.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #203e40;
  --muted: #5c7175;
  --line: #dce5e5;
  --accent: #1c5551;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f5f7f8;
  color: var(--ink);
  font: 14px/1.8 Album, Tahoma, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #aa7c30;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.wrap { width: calc(100% - 64px); max-width: 1280px; margin: auto; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.brand small { display: block; font: 10px/1.8 Arial, sans-serif; color: var(--muted); letter-spacing: 2px; }
.total { font-size: 11px; color: #44625f; background: #e7efec; border-radius: 20px; padding: 5px 12px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0 20px; }
h1 { margin: 0 0 5px; font-size: 25px; line-height: 1.6; }
.intro p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar { flex: 0 1 320px; min-width: 240px; }
.search { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #cfdcdd; border-radius: 9px; padding: 0 13px; color: #607c7c; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #1c555112; }
.search svg { flex-shrink: 0; }
.search input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search input:focus-visible { outline-offset: 1px; }
.search input::placeholder { color: #687e80; }
.result-count { font-size: 11px; color: var(--muted); margin: 0 0 13px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: #a8c1bc; box-shadow: 0 5px 18px #1e444008; }
.site-link { display: flex; flex: 1; flex-direction: column; padding: 18px 16px 14px; border-radius: 12px 12px 0 0; }
.card-heading { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.identity { width: 132px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 7px; background: #f4f7f7; }
.identity--dark { background: #294c50; }
.identity img { width: 112px; height: 48px; object-fit: contain; }
.monogram { display: none; font: 26px Georgia, serif; color: #4f6e68; }
.no-logo .monogram { display: block; }
.identity--dark .monogram { color: white; }
.site-details { min-width: 0; }
.card h2 { font-size: 13px; font-weight: normal; line-height: 1.9; margin: 0 0 5px; min-height: 25px; overflow-wrap: anywhere; }
.domain { display: block; text-align: right; font: 12px/1.5 Arial, sans-serif; color: var(--muted); overflow-wrap: anywhere; }
.visit { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; margin-top: 17px; padding: 8px 11px; border-radius: 6px; background: #eaf2ef; color: #225b52; font-size: 10px; }
.visit span { font: 17px Arial, sans-serif; }
.site-link:hover .visit, .site-link:focus-visible .visit { background: var(--accent); color: white; }
.alternate { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; margin: 0 16px; border-top: 1px solid #edf1f1; padding: 9px 0; font-size: 9px; color: #637b7f; }
.alternate span { font: 10px/1.8 Arial, sans-serif; }
.alternate:hover { color: var(--accent); text-decoration: underline; }
.empty { text-align: center; padding: 45px 15px; color: var(--muted); }
.empty h2 { font-size: 18px; }
.empty button { border: 0; border-radius: 6px; background: var(--accent); color: white; padding: 10px 16px; cursor: pointer; }
footer { display: flex; justify-content: space-between; padding: 22px 0; margin-top: 28px !important; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer a { padding: 0 4px; }
.skip { position: fixed; top: -100px; padding: 12px; background: white; z-index: 5; }
.skip:focus { top: 8px; }
@media (max-width: 1150px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-heading { align-items: stretch; flex-direction: column; gap: 18px; padding: 24px 0 16px; }
  .toolbar { flex-basis: auto; min-width: 0; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .header { padding: 16px 0; gap: 12px; }
  .brand { font-size: 11px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .total { font-size: 10px; padding: 4px 8px; white-space: nowrap; }
  h1 { font-size: 22px; }
  .intro p { font-size: 11px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .site-link { padding: 16px 16px 12px; }
  .card-heading { flex-direction: row; align-items: center; gap: 14px; }
  .identity { flex-shrink: 0; width: 96px; height: 62px; padding: 8px; }
  .identity img { width: 80px; height: 46px; }
  .card h2 { min-height: 0; }
  .visit { margin-top: 14px; font-size: 11px; }
  .alternate { min-height: 44px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
