<?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_18239d42-6810-42c8-96ba-80548f003c0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_04a2edb2-5413-4a71-a241-4ff264ae5f48">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_edb93bb1-be9b-40d3-8448-60ac177ac9d5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_0683916a-ff12-405a-9d53-f275bccd2a94">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_29142e3b-98e3-46ac-a68f-96776cf45a02">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_91ffb861-a518-4971-a34c-08038b288908">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_b91a828c-9594-49ae-bf74-c39585b58053">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_bde17dd0-eb67-44d5-a917-a3dcebaf3014">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_45930fae-45a4-42ab-b4d4-2c9c2e3ddae4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_9bb7884a-6318-4ef2-975d-75fd56c7e238">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_18239d42-6810-42c8-96ba-80548f003c0c"
      id="F_c3c131ed-2e0f-44e0-9c50-54201ff0556e">&lt;p style="tab-size:26.66px;font-size:12pt;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;7,905,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_18239d42-6810-42c8-96ba-80548f003c0c"
      decimals="-3"
      id="F_b1af3089-54d4-427b-b3f8-9fe0aaedb18d"
      unitRef="U_USD">7905000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
