<?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_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_840ca5c0-75da-48af-997a-2ad977b0f60a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_7fb4095f-90c3-4f9c-a4bc-23cabb106780">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_a7a6add7-4cf4-4512-b7fa-0171b6828727">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_1185a7f0-1443-4631-b29a-8251f2254fd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_97e21030-4de4-449a-bb8b-768c25e49451">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_41863c62-6514-4fd1-b420-458ad7131029">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_1cee7cb7-b63c-4b54-99fe-36af0e0f52be">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_36feddda-8382-4c26-9a79-4a6164725154">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_056dcbbd-6057-4c3a-818d-341e0d467a01">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      id="F_6db28634-2a49-41b5-b5a3-55179ac82d68">&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;6,035,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_bfe41c5e-273c-4b53-8ca6-1e23144ec4a4"
      decimals="-3"
      id="F_f8ed6f79-453e-4a72-aeb7-6e63eea11145"
      unitRef="U_USD">6035000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
