<?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_820a9092-cd51-4d51-aa4e-65d7378b7a7f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-11</startDate>
            <endDate>2026-03-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_1076a6bb-3aa0-4c89-b8f6-a75efbbda792">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_bfae5fe2-b349-4b8b-963b-a795198bef21">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_b76bf267-3690-4793-af01-ae10d3799da4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_2048bcbe-8e6a-47c8-9ace-97590a094262">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_16f83cf6-82b1-492b-8992-64491aca91d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_860799bf-1dfa-46eb-84ba-4fcb76f7e8d6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_bc5f643b-6bbb-4673-abae-0a4b901110a2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_932897ff-0cd3-4942-a9ff-a3653802fb4a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_1f91be6a-6837-45f7-8d98-1d0b276356df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      id="F_ab757031-cffb-4c1a-abfe-8a96898dc717">&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;20,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_820a9092-cd51-4d51-aa4e-65d7378b7a7f"
      decimals="0"
      id="F_e6b656a3-acfd-44bf-aa84-d645c5ce819f"
      unitRef="U_USD">20000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
