/* AOL 8.0 channel windows: Research & Learn, Shop@AOL, Teens, AOL Travel, WorkPlace. */
.chn .wbody { background: #fff; padding: 0; container-type: inline-size }

/* header: channel colour band with the AOL gold rule underneath */
.chn-head { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 6px 10px; color: #fff; border-bottom: 3px solid #ffc20e;
  background: linear-gradient(#1b2a63, #2e6fae) }
.chn-teens .chn-head { background: linear-gradient(#4b1d7a, #8a3fc2) }
.chn-travel .chn-head { background: linear-gradient(#0b4f6c, #1b8ab0) }
.chn-workplace .chn-head { background: linear-gradient(#22313f, #3d5a80) }
.chn-shop .chn-head { background: linear-gradient(#14246b, #2559a8) }
.chn-brand { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0 }
.chn-logo { background: #fff; border-radius: 5px; padding: 2px; line-height: 0; flex: none; box-shadow: 1px 1px 0 rgba(0,0,0,.35) }
.chn-title { font: italic bold 21px var(--title); line-height: 1.1; text-shadow: 1px 1px 0 rgba(0,0,0,.45); white-space: nowrap }
.chn-title .amp, .chn-title .at { color: #ffd45a }
.chn-tag { font-size: 10px; color: #ffe9a8; overflow: hidden; text-overflow: ellipsis }
.chn-search { display: flex; gap: 4px; flex: 0 1 290px; min-width: 0 }
.chn-search input { flex: 1; min-width: 0 }

/* body: departments down the left, content on the right */
.chn-wrap { flex: 1; min-height: 0; display: flex }
.chn-nav { width: 152px; flex: none; overflow-y: auto; padding: 6px 4px; background: linear-gradient(90deg, #eef3fb, #d7e3f4); border-right: 1px solid #9fb3d1 }
.chn-nav button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px dotted #9fb3d1; background: none; padding: 4px 6px; font: bold 11px var(--ui); color: #14246b; cursor: pointer }
.chn-nav button::before { content: "▸ "; color: #f5a800 }
.chn-nav button:hover { background: #ffe7a8 }
.chn-nav button.on { background: #1b2a63; color: #fff }
.chn-teens .chn-nav { background: linear-gradient(90deg, #f6effc, #e6d6f5); border-color: #b38ad6 }
.chn-teens .chn-nav button { color: #4b1d7a } .chn-teens .chn-nav button.on { background: #6a2aa6; color: #fff }
.chn-travel .chn-nav { background: linear-gradient(90deg, #eef8fb, #cfe9f2); border-color: #7fbcd2 }
.chn-travel .chn-nav button { color: #0b4f6c } .chn-travel .chn-nav button.on { background: #0b4f6c; color: #fff }
.chn-workplace .chn-nav button.on { background: #22313f }
.chn-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 10px; font-size: 11px; overflow-wrap: anywhere }
.chn-main:focus { outline: 0 }
.chn-foot { display: flex; align-items: center; gap: 8px; padding: 2px 10px 3px; border-top: 1px solid #c5d3e5; background: #eef3fb }
.chn-foot .grow { flex: 1 }

/* building blocks */
.cx-h2 { margin: 0 0 6px; font: bold 15px var(--title); color: #1b2a63 }
.cx-h { font: bold 12px var(--title); color: #1b2a63; margin: 10px 0 4px; border-bottom: 1px solid #c5d3e5 }
.cx-loading { color: #666; padding: 8px; font-style: italic }
.cx-src { padding: 3px 0 0; margin-top: 6px; font-size: 10px; color: #555; border-top: 1px solid #dde }
.cx-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; align-items: start }
.cx-col { min-width: 0 }
.cx-box { border: 1px solid #b5c3d5; margin-bottom: 8px; background: #fff }
.cx-box > h3 { margin: 0; padding: 3px 6px; font: bold 12px var(--title); color: #1b2a63; background: linear-gradient(#fff3c4, #ffd45a 50%, #f5b81c 51%, #ffd04a); border-bottom: 1px solid #b07c12 }
.cx-in { padding: 6px }
.cx-in::after, .cx-article::after { content: ""; display: block; clear: both }
.cx-in h4 { margin: 0 0 4px; font: bold 13px var(--arial); color: #1b2a63 }
.cx-in p, .chn-main p { margin: 0 0 6px }
.cx-li { margin: 0 0 4px }
.cx-thumb { float: right; max-width: 120px; max-height: 150px; margin: 0 0 6px 8px; border: 1px solid #b5c3d5 }
.cx-potd { display: block; width: 100%; max-height: 220px; object-fit: cover; margin-bottom: 4px; border: 1px solid #b5c3d5 }
.cx-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px }
.cx-form input, .cx-form select { min-width: 0 }
.cx-form input[type=text], .cx-form input:not([type]) { flex: 1 1 170px }
.cx-form2 { margin-top: 6px }
.cx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px }
.cx-chip { border: 1px solid #9fb3d1; background: linear-gradient(#fff, #e6eef9); border-radius: 10px; padding: 2px 9px; color: #14246b; cursor: pointer; font: 11px var(--ui) }
.cx-chip:hover { background: #ffe7a8; border-color: #f0a020 }
.cx-quick { display: flex; flex-wrap: wrap; gap: 4px }
.cx-tabs { padding: 0 0 6px }
.cx-hit { padding: 4px 0; border-bottom: 1px dotted #b5c3d5 }
.cx-article h3 { margin: 0 0 2px; font: bold 15px var(--arial); color: #1b2a63 }
.cx-article p { margin-top: 6px }
.cx-word { font: bold 18px var(--arial); color: #1b2a63; margin: 4px 0 } .cx-word span { font-weight: normal; color: #666; font-size: 13px }
.cx-pos i { color: #c0392b; font-weight: bold } .cx-pos ol { margin: 2px 0 8px 18px; padding: 0 }
.cx-ev { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 3px 0; border-bottom: 1px dotted #b5c3d5 }
.cx-ev > b { color: #c0392b; text-align: right }
.cx-map { display: block; width: 100%; height: 250px; border: 1px solid #1b2a63; background: #aad3df }
.cx-dir summary { cursor: pointer; color: #14246b }
.cx-recipe summary { cursor: pointer; padding: 4px 0; border-bottom: 1px dotted #b5c3d5 }
.cx-recipe h4 { margin: 6px 0 2px; color: #1b2a63 } .cx-recipe ul { margin: 0 0 4px 18px; padding: 0 }
.cx-pre { white-space: pre-wrap }
.cx-ol { margin: 4px 0 8px; padding-left: 20px } .cx-ol li { margin-bottom: 4px }
.cx-hw { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 8px }
.cx-hw .cx-in { display: flex; flex-wrap: wrap; gap: 4px }
.cx-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; margin-bottom: 4px }
.cx-room { display: flex; justify-content: space-between; gap: 6px; border: 1px solid #9fb3d1; background: linear-gradient(#fff, #e6eef9); padding: 4px 6px; text-align: left; cursor: pointer; font: 11px var(--ui); color: #14246b }
.cx-room:hover { background: #ffe7a8 } .cx-room b { color: #c0392b }
.cx-board { padding: 4px 0; border-bottom: 1px dotted #b5c3d5 }
.cx-board .kw { margin-left: 4px }
a.cx-a { display: inline-flex; align-items: center; text-decoration: none; line-height: 20px }
.cx-qt th:nth-child(1), .cx-qt td:nth-child(1) { width: 26% } .cx-qt td { white-space: nowrap }
table.cx-qt { table-layout: auto } .cx-qt td:nth-child(2) { white-space: normal }

/* currency converter */
.cx-fx { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end }
.cx-fx label { display: flex; flex-direction: column; gap: 2px; font-weight: bold; min-width: 0; max-width: 100% }
.cx-fx select { max-width: 100%; width: 210px } .cx-fx input { width: 110px }
.cx-fxout { font-size: 15px; padding: 8px; margin: 8px 0; background: #f4f8fd; border: 1px solid #c5d3e5 } .cx-fxout b { color: #1b2a63; font-size: 18px }
.cx-fxt { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px }
.cx-fxt div { display: flex; gap: 6px; align-items: baseline; border-bottom: 1px dotted #dde; min-width: 0 }
.cx-fxt b { flex: none; white-space: nowrap } .cx-fxt span { font-variant-numeric: tabular-nums; white-space: nowrap } .cx-fxt i { color: #777; font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* Shop@AOL */
.sh-banner { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; color: #fff; cursor: pointer; border: 2px solid #ffd45a;
  background: linear-gradient(120deg, #8e1015, #cf2a2f 55%, #1e6b2f) }
.sh-hgg { font: italic bold 22px Georgia, "Times New Roman", serif; color: #ffd45a; line-height: 1; padding-right: 12px; border-right: 1px dotted #ffd45a; text-shadow: 1px 1px 0 #000; flex: none }
.sh-bb { display: inline-block; margin-top: 6px; line-height: 19px }
.sh-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; margin-bottom: 6px }
.sh-dept { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #b07c12; background: linear-gradient(#fff8dc, #ffe08a); padding: 4px 6px; cursor: pointer; font: 11px var(--ui); text-align: left }
.sh-dept b { color: #14246b } .sh-dept span { font-size: 10px; color: #5a4400 } .sh-dept:hover { filter: brightness(1.05) }
.sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px }
.sh-card { display: flex; flex-direction: column; gap: 2px; border: 1px solid #b5c3d5; background: #fff; padding: 6px; cursor: pointer; min-width: 0 }
.sh-card:hover, .sh-card:focus { box-shadow: 0 0 0 2px #ffc20e; outline: 0 }
.sh-t { font: bold 12px var(--arial); color: #14246b } .sh-p { font: bold 14px var(--arial); color: #0a7a0a } .sh-p.big { font-size: 20px; margin-bottom: 6px }
.sh-m, .sh-s { font-size: 10px; color: #555 }
.sh-add { align-self: flex-start; margin-top: 4px }
.sh-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px } .sh-grid span { color: #555 }
.sh-desc { white-space: pre-wrap; border: 1px solid #c5d3e5; background: #f9fbfe; padding: 6px; margin: 8px 0 }
.sh-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 }
.sh-note { background: #fff8dc; border: 1px solid #e0b040; padding: 6px; margin-top: 10px }
.sh-form { display: flex; flex-direction: column; gap: 6px }
.sh-form label { display: flex; flex-direction: column; gap: 2px; font-weight: bold; min-width: 0 }
.sh-form .field { width: 100%; box-sizing: border-box; font: 12px var(--ui) } .sh-form textarea { resize: vertical }
.sh-row { display: flex; flex-wrap: wrap; gap: 6px 10px } .sh-row label { flex: 1 1 120px }
.sh-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 4px 0 10px }
.sh-steps li { flex: 1 1 100px; padding: 4px 6px; border: 1px solid #9fb3d1; background: #e6eef9; color: #555 }
.sh-steps li b { display: inline-block; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; text-align: center; background: #9fb3d1; color: #fff; font-size: 10px }
.sh-steps li.on { background: #1b2a63; color: #fff; border-color: #1b2a63 } .sh-steps li.on b { background: #ffc20e; color: #1b2a63 }
.sh-steps li.done { color: #1e6b2f } .sh-steps li.done b { background: #1e6b2f }
.sh-seller { border: 1px solid #c5d3e5; padding: 4px 8px; margin-bottom: 6px }
.sh-seller .cx-h { margin-top: 2px }
.sh-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0 } .sh-line i { color: #777 }
.sh-total { border-top: 2px solid #1b2a63; margin-top: 4px; padding-top: 4px; font-weight: bold }
.sh-cart tfoot td, .sh-mine td { padding: 3px 5px }
.sh-cart td:first-child, .sh-mine td:first-child { white-space: normal }
.sh-cartbtn { color: #14246b; font-weight: bold; text-decoration: none }

/* Teens */
.tn-chart { list-style: none; margin: 0; padding: 0 }
.tn-chart li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dotted #c9b0e0 }
.tn-rank { flex: none; width: 26px; text-align: right; font: bold 18px var(--arial); color: #8a3fc2 }
.tn-chart.compact li { padding: 2px 0 } .tn-chart.compact .tn-rank { font-size: 13px; width: 20px }
.tn-art { width: 56px; height: 56px; flex: none; border: 1px solid #c9b0e0; object-fit: cover }
.tn-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin-bottom: 8px }
.tn-game { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid #b38ad6; background: linear-gradient(#fff, #f1e6fa); color: #3a1060; text-decoration: none }
.tn-game b { font-size: 13px } .tn-game span { font-size: 10px; color: #555 } .tn-game:hover { box-shadow: 0 0 0 2px #ffc20e }
.chn-teens .cx-box > h3 { background: linear-gradient(#ffe2b8, #ffb347 50%, #ff9a1a 51%, #ffb347); border-color: #c06a00; color: #3a1060 }

/* AOL Travel */
.tv-hero { padding: 10px; margin-bottom: 8px; background: linear-gradient(#e8f6fb, #bfe3f0); border: 1px solid #7fbcd2 }
.tv-hero h2 { margin: 0 0 6px; font: bold 15px var(--title); color: #0b4f6c }
.tv-hero .cx-form { margin-bottom: 0 }
.tv-time { font: bold 20px var(--arial); color: #1b2a63 }
.tv-wx { display: flex; gap: 8px; align-items: center } .tv-t { font: bold 22px var(--arial); color: #1b2a63 }
.tv-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-size: 10px; margin: 6px 0 }
.tv-days b { color: #c0392b } .tv-days i { color: #1d3c8f; font-style: normal }

/* WorkPlace */
.wp-calc { max-width: 250px; padding: 8px; border: 1px solid #7f9db9; border-radius: 6px; background: linear-gradient(#e9eef6, #c8d3e4); outline: 0 }
.wp-calc:focus { box-shadow: 0 0 0 2px #ffc20e }
.wp-disp { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 4px 8px; margin-bottom: 6px; background: #dfe8d0; border: 1px solid #6a7a5a; box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); font: 22px "Courier New", monospace; overflow: hidden }
.wp-m { font-size: 11px; color: #3a4a2a } .wp-v { white-space: nowrap }
.wp-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px }
.wp-keys button { height: 30px; font: bold 13px var(--ui); border: 1px solid #7f9db9; border-radius: 4px; background: linear-gradient(#fff, #dde5f0); cursor: pointer; color: #14246b }
.wp-keys button.n { background: #fff; color: #000 } .wp-keys button.eq { background: linear-gradient(#fff3c4, #ffd45a 50%, #f5b81c 51%, #ffd04a); border-color: #b07c12 }
.wp-keys button:active { filter: brightness(.9) }
.wp-loan label { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; font-weight: bold } .wp-loan .field { width: 100%; box-sizing: border-box }
.wp-job { padding: 5px 0; border-bottom: 1px dotted #b5c3d5 }

/* narrow windows and phones */
@container (max-width: 620px) {
  .cx-cols { grid-template-columns: minmax(0, 1fr) }
}
@container (max-width: 560px) {
  .chn-wrap { flex-direction: column }
  .chn-nav { width: auto; display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; max-height: 32%; border-right: 0; border-bottom: 1px solid #9fb3d1; background: #eef3fb }
  .chn-nav button { width: auto; flex: 0 0 auto; border: 1px solid #9fb3d1; border-radius: 2px; padding: 2px 6px; font-size: 10px; background: #fff }
  .chn-nav button::before { content: none }
  .chn-search { flex: 1 1 100% }
  .chn-title { font-size: 18px }
  .cx-thumb { max-width: 90px }
  .cx-map { height: 200px }
  .sh-banner { flex-direction: column; align-items: flex-start } .sh-hgg { border-right: 0; border-bottom: 1px dotted #ffd45a; padding: 0 0 4px }
  .cx-fx select { width: 100% } .cx-fx label { flex: 1 1 100% } .cx-fx input { width: 100%; box-sizing: border-box }
  .sh-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) }
}

/* newer channels (AOL Health, AOL Cinema, AOL Photos, AOL Weather): same band, own colours */
.chb { flex: none }
.chb .chn-logo svg { display: block }
.chb-health { background: linear-gradient(#0d5c44, #23a06f) }
.chb-cinema { background: linear-gradient(#4a0a12, #9e1a2c); border-bottom-color: #ffc20e }
.chb-photos { background: linear-gradient(#2c2160, #6a50b8) }
.chb-weather { background: linear-gradient(#0b4a86, #3a9ee0) }
.live .chb + .lv-head h2 { display: none }

/* AOL Newsgroups (Usenet reader) */
.chb-news { background: linear-gradient(#123a5e, #2e6fae) }
.usenet .wbody { padding: 0; display: flex; flex-direction: column }
.un-wrap { flex: 1; min-height: 0; display: flex }
.un-nav { width: 150px; flex: none; overflow-y: auto; padding: 6px 4px; background: linear-gradient(90deg, #eef3fb, #d7e3f4); border-right: 1px solid #9fb3d1 }
.un-nav button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px dotted #9fb3d1; background: none; padding: 5px 6px; font: bold 11px var(--ui); color: #14246b; cursor: pointer }
.un-nav button::before { content: "▸ "; color: #f5a800 }
.un-nav button:hover { background: #ffe7a8 } .un-nav button.on { background: #1b2a63; color: #fff }
.un-main { flex: 1; min-width: 0; overflow: auto; padding: 6px 10px; font-size: 11px; display: flex; flex-direction: column }
.un-list { flex: 1; min-height: 120px; overflow: auto; border: 1px solid #b5c3d5; background: #fff }
.un-foot { flex: none; display: flex; gap: 6px; align-items: center; padding: 2px 8px; border-top: 1px solid #c5d3e5; background: #eef3fb }
.un-gbar { flex: none; padding: 4px 8px; flex-wrap: wrap }
.un-glist { margin: 0 8px 6px }
.un-posts { flex: none; max-height: 34%; overflow: auto; border-bottom: 1px solid #b5c3d5; background: #fff }
.un-read { flex: 1; min-height: 0; overflow: auto; padding: 6px 10px; background: #fff; font: 12px var(--arial) }
.un-hdr { padding: 4px 6px; margin-bottom: 6px; background: #eef3fb; border: 1px solid #c5d3e5; font-size: 11px }
.un-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.35 "Courier New", monospace; margin: 0 }
.un-q { color: #2a5d8f }
.un-srvopt { display: block; margin: 0 0 8px; padding: 6px 8px; border: 1px solid #c5d3e5; background: #f7faff; cursor: pointer }
.un-prog { height: 14px; border: 1px solid #7f9db9; background: #fff; padding: 1px; margin: 6px 0 } .un-prog div { height: 100%; width: 0; background: repeating-linear-gradient(90deg, #2f62c9 0 8px, transparent 8px 10px); transition: width .2s }
.un-warn { color: #a01a1a }
.un-view { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #222; overflow: auto }
#mdi.narrow .un-wrap { flex-direction: column }
#mdi.narrow .un-nav { width: auto; display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid #9fb3d1 }
#mdi.narrow .un-nav button { width: auto; flex: 1 1 45%; border: 1px dotted #9fb3d1 }
