/* ===== أخبار وعروض الطيران (2026-10-11) — bulletin feed, «قريته», add/edit form with AI reading ===== */
.an { display: flex; flex-direction: column; gap: 14px; --an-r: 16px; --k: var(--orange-d); --k-bg: #fff7ed; max-width: 1180px; }
.an-i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.an .ltr, .anf .ltr { direction: ltr; unicode-bidi: isolate; }
.an-muted { color: var(--muted); font-size: .8rem; }

/* toolbar */
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--an-r); padding: 10px 12px; box-shadow: var(--shadow); }
.an-bar__sp { flex: 1; }
.an-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #f8fafc; width: 330px; max-width: 100%; color: var(--muted); transition: border-color .18s, background .18s; }
.an-search:focus-within { border-color: var(--blue); background: #fff; }
.an-search input { border: 0; outline: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 0; width: 100%; color: var(--ink); }
.an-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.an-tab { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .34rem .85rem; font-weight: 800; font-size: .8rem; color: var(--ink); transition: background .18s, border-color .18s, color .18s; }
.an-tab:hover { border-color: var(--orange); }
.an-tab small { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.an-tab[data-an-tab=UNREAD] small:not(:empty):not([data-zero]) { background: #fee2e2; color: #b91c1c; }
.an-tab.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }
.an-tab.is-on small { background: rgba(255, 255, 255, .16); color: #fff; }
.an-add { display: inline-flex; align-items: center; gap: 6px; }
.an-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.an-kinds:empty { display: none; }
.an-kind { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .3rem .7rem; font-weight: 800; font-size: .78rem; color: #475569; transition: background .15s, border-color .15s; }
.an-kind:hover { border-color: #cbd5e1; }
.an-kind.is-on { background: #fff7ed; border-color: #fdba74; color: var(--orange-d); }

/* kind colours */
.k-offer { --k: #c2410c; --k-bg: #fff7ed; }
.k-baggage { --k: #0f766e; --k-bg: #f0fdfa; }
.k-discount { --k: #be123c; --k-bg: #fff1f2; }
.k-fare { --k: #6d28d9; --k-bg: #f5f3ff; }
.k-route { --k: #0369a1; --k-bg: #f0f9ff; }
.k-schedule { --k: #475569; --k-bg: #f8fafc; }
.k-policy { --k: #a16207; --k-bg: #fefce8; }
.k-news { --k: #1f2937; --k-bg: #f3f4f6; }

/* bulletin card */
.an-feed { display: flex; flex-direction: column; gap: 14px; }
.an-card { display: grid; grid-template-columns: 150px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--an-r); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.an-card.is-unread { border-color: color-mix(in srgb, var(--k) 45%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 25%, transparent), var(--shadow); }
.an-card.is-expired, .an-card.is-archived { opacity: .78; }
.an-card.is-flash { animation: an-flash 2s ease; }
@keyframes an-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.an-hl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 10px; text-align: center; color: var(--k); background: var(--k-bg); border-inline-end: 1px dashed color-mix(in srgb, var(--k) 30%, #fff); }
.an-hl > .an-i { width: 30px; height: 30px; }
.an-hl b { font-size: 1.55rem; font-weight: 900; line-height: 1.2; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.an-hl b.is-long { font-size: 1.02rem; line-height: 1.45; }
.an-pl__lead { font-size: .74rem; font-weight: 900; color: var(--k); }
.an-hl span { font-size: .78rem; font-weight: 900; }
.an-main { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-width: 0; }
.an-card__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-who { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 140px; }
.an-who small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.an-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.an-tag, .an-st { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.an-tag .an-i { width: 13px; height: 13px; }
.an-tag--new { background: #dc2626; color: #fff; }
.an-tag--pin { background: #fef9c3; color: #854d0e; }
.an-st--active { background: #dcfce7; color: #166534; }
.an-st--active.is-ending { background: #fef3c7; color: #92400e; }
.an-st--soon { background: #e0f2fe; color: #075985; }
.an-st--expired { background: #f1f5f9; color: #64748b; }
.an-st--archived { background: #e5e7eb; color: #374151; }
.an-title { font-size: 1.12rem; font-weight: 900; line-height: 1.45; margin: 0; }
.an-sum { margin: 0; color: #334155; font-size: .92rem; line-height: 1.75; white-space: pre-line; }

.an-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; }
.an-fact { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 8px 10px; }
.an-fact dt { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.an-fact dd { margin: 2px 0 0; font-weight: 900; font-size: .86rem; }
.an-fact--ban { background: #fef2f2; border-color: #fee2e2; }
.an-fact--ban dt { color: #b91c1c; }
.an-cls { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.an-cls i { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: var(--dark); color: #fff; font-size: .74rem; font-weight: 900; }

.an-route { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.an-route__arrow { display: grid; place-items: center; color: var(--k); }
.an-places { display: flex; flex-direction: column; gap: 6px; border-radius: 12px; padding: 10px; background: var(--k-bg); }
.an-places--from { flex: 0 1 auto; }
.an-places--to { flex: 1 1 340px; }
.an-pl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.an-pl > b { font-size: .82rem; font-weight: 900; color: var(--k); margin-inline-end: 4px; }
.an-city { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 800; }
.an-city i { font-style: normal; font-size: .68rem; color: var(--muted); font-weight: 900; letter-spacing: .04em; }

.an-more { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.an-more summary { cursor: pointer; font-weight: 900; font-size: .84rem; display: flex; align-items: center; gap: 6px; }
.an-more summary small { background: #f1f5f9; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.an-more ul { margin: 8px 0 2px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: #334155; }
.an-src { white-space: pre-wrap; font-family: inherit; font-size: .84rem; color: #334155; margin: 8px 0 0; max-height: 320px; overflow: auto; text-align: start; }
.an-files { display: flex; flex-wrap: wrap; gap: 8px; }
.an-file { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: .8rem; background: #fff; transition: border-color .15s; }
.an-file:hover { border-color: var(--orange); }
.an-file--img { padding: 0; overflow: hidden; width: 200px; aspect-ratio: 16 / 9; background: #f1f5f9; }
.an-file--img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.an-card__f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.an-sp { flex: 1; }
.an-read { display: inline-flex; align-items: center; gap: 6px; }
.an-read.is-done { color: #15803d; font-weight: 900; font-size: .84rem; }
.an-readers { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .28rem .8rem; font-weight: 800; font-size: .78rem; color: #475569; transition: border-color .15s; }
.an-readers:hover { border-color: #94a3b8; }
.an-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #475569; transition: background .15s, color .15s, border-color .15s; }
.an-ic:hover { background: #f8fafc; color: var(--ink); }
.an-ic.is-on { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.an-ic--del:hover { background: #fef2f2; color: var(--red); border-color: #fecaca; }

.an-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--an-r); padding: 40px 20px; color: #475569; }
.an-empty > .an-i { width: 42px; height: 42px; color: var(--orange); }

/* who read */
.an-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-reads h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .9rem; }
.an-reads h4.is-done { color: #15803d; }
.an-reads ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.an-reads li { display: flex; justify-content: space-between; gap: 8px; background: #f8fafc; border-radius: 8px; padding: 6px 10px; font-size: .84rem; }
.an-reads li small { color: var(--muted); }

/* ===== form ===== */
.modal__card.anf-card { width: min(820px, 100%); }
.anf { display: flex; flex-direction: column; gap: 14px; }
.anf-sec, .anf-ai { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.anf-ai { background: linear-gradient(135deg, #fff7ed, #fffbeb); border-color: #fed7aa; }
.anf h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .95rem; }
.anf h4 small { font-weight: 700; color: var(--muted); font-size: .76rem; }
.anf-drop { display: flex; align-items: center; gap: 12px; border: 2px dashed #fdba74; border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.anf-drop > .an-i { width: 28px; height: 28px; color: var(--orange-d); }
.anf-drop span { display: flex; flex-direction: column; }
.anf-drop small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.anf-drop:hover, .anf-drop.is-over { background: #fff7ed; border-color: var(--orange); }
.anf-new, .anf-old { display: flex; flex-wrap: wrap; gap: 8px; }
.anf-new:empty, .anf-old:empty { display: none; }
.anf-file { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 6px 4px 10px; font-size: .8rem; font-weight: 800; max-width: 100%; }
.anf-file img { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; }
.anf-file span, .anf-file a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.anf-file .an-ic { width: 26px; height: 26px; }
.anf-ai__go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.anf-ai__go .btn { display: inline-flex; align-items: center; gap: 6px; }
.anf-f { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 800; color: #334155; min-width: 0; }
.anf-f small { color: var(--muted); font-weight: 700; }
.anf .in { width: 100%; }
.anf textarea.in { resize: vertical; min-height: 60px; }
.anf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.anf-row--title { grid-template-columns: 1fr 160px; }
.anf-air__sel { display: flex; align-items: center; gap: 10px; border: 1.5px solid #bbf7d0; background: #f0fdf4; border-radius: 12px; padding: 8px 10px; }
.anf-air__sel b { flex: 1; }
.anf-air__hits { display: flex; flex-direction: column; gap: 4px; }
.anf-air__hits:empty { display: none; }
.anf-hit { display: flex; align-items: center; gap: 10px; text-align: start; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; transition: background .15s, border-color .15s; }
.anf-hit:hover { background: #fff7ed; border-color: #fdba74; }
.anf-hit span { display: flex; flex-direction: column; }
.anf-hit small { color: var(--muted); font-size: .74rem; }
.anf-kinds, .anf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.anf-kinds button, .anf-chips button { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .32rem .8rem; font-weight: 800; font-size: .8rem; color: #475569; transition: background .15s, border-color .15s, color .15s; }
.anf-kinds button.is-on, .anf-chips button.is-on { background: #fff7ed; border-color: #fdba74; color: var(--orange-d); }
.anf-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.anf-dates fieldset { border: 0; margin: 0; padding: 10px; background: #f8fafc; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.anf-dates legend { float: inline-start; width: 100%; grid-column: 1 / -1; font-weight: 900; font-size: .82rem; margin-bottom: 2px; }
.anf-sub { display: flex; flex-direction: column; gap: 8px; }
.anf-sub > b { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #b91c1c; }
.anf-black { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; font-size: .8rem; font-weight: 800; }
.anf-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed #cbd5e1; background: none; border-radius: 10px; padding: .4rem .85rem; font-weight: 800; font-size: .8rem; color: #334155; transition: border-color .15s, color .15s; }
.anf-add:hover { border-color: var(--orange); color: var(--orange-d); }
.anf-letters { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; direction: ltr; }
.anf-letters button { height: 30px; border-radius: 7px; border: 1px solid #e2e8f0; background: #fff; font-weight: 900; font-size: .78rem; color: #475569; transition: background .12s, color .12s, border-color .12s; }
.anf-letters button:hover { border-color: #fdba74; }
.anf-letters button.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.anf-opts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; font-size: .84rem; }
.anf-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

@media (max-width: 760px) {
  .an-search { width: 100%; }
  .an-bar__sp { display: none; }
  .an-add { width: 100%; justify-content: center; }
  .an-card { grid-template-columns: 1fr; }
  .an-hl { flex-direction: row; justify-content: flex-start; padding: 10px 14px; border-inline-end: 0; border-bottom: 1px dashed color-mix(in srgb, var(--k) 30%, #fff); }
  .an-hl > .an-i { width: 22px; height: 22px; }
  .an-hl b { font-size: 1.2rem; text-align: start; }
  .an-hl b.is-long { font-size: .98rem; }
  .an-route__arrow { transform: rotate(-90deg); width: 100%; }
  .an-file--img { width: 100%; }
  .an-reads, .anf-row, .anf-row--title, .anf-dates { grid-template-columns: 1fr; }
  .anf-letters { grid-template-columns: repeat(9, 1fr); }
}
