<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_75114422-3edc-47ec-b5bc-e31d2f3c108d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_261cd5fa-c3fe-42ad-a526-ffd12c38854e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_45481204-4653-476b-a9a0-4ff8b4c0dfb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_d1113b44-2ead-411f-bc69-7a1ed9488797">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_894efed1-792b-4f74-97d7-d63133b1366a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_9130ba07-198e-4d11-a956-a2cc33372e24">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_885f1c76-95bd-4bb3-ac3b-a9d2e00bb1b0">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_124838fc-ec2b-4604-a7b0-b48c618872cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_5010b443-ae9b-42ad-bb67-280f843ed52b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_94412781-4f76-4f30-8ba5-2cecbefced37">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      id="F_c84da5e2-52dd-4038-ad87-ec90bae2079b">&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;1,330,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_75114422-3edc-47ec-b5bc-e31d2f3c108d"
      decimals="-3"
      id="F_bdac7c96-6510-4692-a8ec-48442a0c63a5"
      unitRef="U_USD">1330000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
