<?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_d832984d-7689-427d-a860-da7ade137aab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_b54a212e-29d5-4f90-a1d8-e5b52dbf358c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_22c03a36-b3dc-4d13-b795-17d84e1185a8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_5f56b148-0e3c-4a99-8dbc-e9cb6b3e49fb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_e6826eab-1f3f-46a4-a5ae-614f13e91a0b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_2f8a4ba3-5777-4d3d-9c80-119dece7525b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_b00ed431-f245-4986-b7d2-8bcbf794f270">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_cea0e9a4-ecd0-4eb6-a8f2-d65200b7b1d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_f9c80388-f13d-43ee-9c35-b27a2fc7df76">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_81895602-8be2-45a3-87ff-2273d520848a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d832984d-7689-427d-a860-da7ade137aab"
      id="F_f2b381df-e1f2-4d50-b436-0d7a3e20273c">&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;1,754,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_d832984d-7689-427d-a860-da7ade137aab"
      decimals="-3"
      id="F_5e0bd256-7c53-4573-9c11-8abfac474f9d"
      unitRef="U_USD">1754000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
