<?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_7fb70a42-050e-4179-b6ae-0ab2c8c9c791">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_df1c5245-545a-440d-b165-32badeb3fc17">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_fa491f29-7885-48fc-84bf-eb2686fb6486">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_e112cab3-44af-4f54-88d6-5629cc173a39">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_3752af96-1dcc-424f-8c2a-79ace0cff084">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_4939474c-35f5-4ef1-b386-179b32db636d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_7ab16802-a8e4-4b5e-85b9-c77bb0ce91d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_1275783b-f519-4a96-b214-489a56934012">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_73269fd9-d667-4a5f-8a79-fdbe0fec7a14">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_1898c755-38f8-41c2-a19a-e5693b9bea21">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      id="F_1f20173a-c7a3-47c6-b654-d6aa71a55577">&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;267,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_7fb70a42-050e-4179-b6ae-0ab2c8c9c791"
      decimals="-3"
      id="F_ef176ff7-d78a-4785-9cb7-a493eeb53609"
      unitRef="U_USD">267000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
