<?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_5e4895cb-23a8-4a99-aa11-45ac983bc9e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_81aa45c9-3917-449f-8f9c-1f073328adff">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_cbcd7fe7-992f-474e-af62-0e280d836692">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_cb81ae60-36b3-4f24-be5e-3050c33cec6e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_da857472-5278-4382-95dc-c14f15811e4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_1ea7ae80-8a4f-48da-98ef-d3d38a5e7b3b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_38eecb55-d91a-4063-b0e9-f3500c75c38d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_1b1ec315-ad0f-4d07-9f5c-7fd43b418e4b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_f0f4d4c1-84c2-4eb4-911e-932dc175ad07">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_93768094-2ad3-4e1b-b67c-e406e5e85687">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      id="F_2eba8f69-5bdf-492a-b439-b1fdf1097180">&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;620,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_5e4895cb-23a8-4a99-aa11-45ac983bc9e9"
      decimals="-3"
      id="F_f356524e-573e-41ad-811d-b4b8f8b65a08"
      unitRef="U_USD">620000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
