<?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_ad746fea-f371-4910-878f-c58fad3ce45a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_89c37624-3889-4eb3-b65e-eaec493e1d0e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_845ac8f5-d228-42fd-9341-7e3ee12789a0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_c3f96421-dd05-420d-a43f-c5051dffeeae">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_b979f813-6d27-42ea-a4c1-80072a47aca3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_00e88455-184b-44d6-abaf-59c66aa42b1f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_60dd8dde-192f-46b8-a400-0a8be006429d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_cc29f8e8-1b38-4555-a410-dac431be2277">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_4768e8c5-ed48-47ea-b10a-022208d62548">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_3c7ee31d-72d0-4df0-95ae-eaefb2d32e85">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ad746fea-f371-4910-878f-c58fad3ce45a"
      id="F_300a4a3e-5fa3-4d9c-80cc-226f3364833c">&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;843,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_ad746fea-f371-4910-878f-c58fad3ce45a"
      decimals="-3"
      id="F_e186535b-e70d-4d8d-966d-4b3517abdb9f"
      unitRef="U_USD">843000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
