<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_82da39c1-ebe0-43bf-80be-17fc56f123fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-17</startDate>
            <endDate>2026-04-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_e5d94ec2-3714-494b-ad9c-87c7eb867960">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_e4e290ec-4345-4599-ab66-3c1adc22ac4f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_6ff25774-ec38-44e3-9e39-b4a5e1eb861a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_54f198bb-1861-4514-acb7-6a6e28498048">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_a66360ba-cd85-4a42-a6eb-fe648f282b17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_e47e6274-a393-4442-8188-fe4e69dac9b0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_1f21db01-d8ba-4c4e-ab8e-76e429ab217b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_7425e76f-fd80-4399-bc58-4460e4a2266f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_584e86da-38d7-41df-b810-b156342b4838">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      id="F_a0ceb0aa-db29-427e-93f8-e3ff19ce37b0">&lt;p style="font-size:10pt;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,000,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_82da39c1-ebe0-43bf-80be-17fc56f123fb"
      decimals="0"
      id="F_f7c29cd9-9865-43d0-bbba-b8a1c9748221"
      unitRef="U_USD">7000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
