<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_f7099871-0f85-4719-8034-d05278744ad2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_bc2d293f-6cc5-4a45-a417-77857b63cda0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_6dad9a59-dfff-479f-8731-be3d89c8b236">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_30f08915-fa35-4dbc-851d-325cc1bf9f4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_1a97474f-36e3-43f4-8e3a-25e17b18d3e7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_8858ac9b-e4b0-48ae-bd94-9cea5b4a3ba7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_4d70a566-40b7-421a-8e15-be8af60cb5ad">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_988461e1-e2b3-4a6b-bc4d-88dfa1789fbf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_e6bc7318-dee2-413c-ad10-00b158e3fc7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_d998e180-aeb3-4e91-ac2b-e5107eb85134">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      id="F_a895ebd6-616b-479d-8063-75ff12e567ea">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5,104,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_f7099871-0f85-4719-8034-d05278744ad2"
      decimals="0"
      id="F_2a2c45b3-013b-474d-8ed8-9a32c3a63cd4"
      unitRef="U_USD">5104000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
