<?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_838851d4-f0db-4597-bfcc-3ad875e56717">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_5e78dc39-3c16-402f-af53-a9a406ca552e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_33983193-ac95-4d68-a93c-eaf9bd339646">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_d62e1710-9725-422a-a189-de24bbcf79ff">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_bc6bc750-9765-4d79-aff3-2fa4125acf21">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_35daeff8-0bc2-45c9-b766-fd402204c823">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_48fad2f9-b335-4407-acae-7a3f5c37668e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_3d6b0108-cb11-4314-af0a-7272fe32e642">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_a196b662-4ce6-4156-bae6-f120d49cb60c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_1fb707a0-7e47-4e84-a817-c59b6b0da23d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_838851d4-f0db-4597-bfcc-3ad875e56717"
      id="F_282a5378-c9dd-46a5-9a37-fa4a5ecaa3dc">&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;4,855,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_838851d4-f0db-4597-bfcc-3ad875e56717"
      decimals="-3"
      id="F_f2df96d8-87df-4f96-a2da-74921d61157b"
      unitRef="U_USD">4855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
