<?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_a7295ac7-7b06-4f78-9d0d-11beb7c68288">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_df89e19a-eeb7-4c38-a7df-80201dad304d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_fa22d056-b676-41cd-bd72-bb2ea591d72b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_ca871d9e-945b-4640-9fe0-1e984e6e5bfc">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_da529eef-0177-46ac-bb9c-93ed1ce847d4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_25526c69-2c1d-45a0-8dc9-a418c7759159">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_0f51fec0-08c6-41f1-a822-dcfae155fabe">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_e64b7345-070e-4f56-af30-f93c0824e3bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_fbc1b667-7cab-45d5-bf9f-f32419dd1c31">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_5877e406-f485-40ee-a5c0-fa31c24f68d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      id="F_c91005c1-57db-4f81-96d8-17a69bff50a1">&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,281,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_a7295ac7-7b06-4f78-9d0d-11beb7c68288"
      decimals="-3"
      id="F_15ec8bac-a44a-4fea-9fc0-cf1c77d56b9f"
      unitRef="U_USD">7281000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
