<?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_e3f44c64-dde4-41e9-a81e-52de4de01b9b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_d82a7629-6741-4eb9-ad6c-fc45ca2ef33a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_25600571-da5a-4c1a-80c5-5a503e09774c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_c63662a4-1960-4a38-977c-a2abde01a3ec">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_a7597229-4564-4ead-a94e-a9112f1ff8e6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_469fb6a7-d88e-4120-a6eb-88d16020f8d1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_2ff134ba-071a-42ba-94de-badb534205f0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_b52bb106-352b-4a07-86f9-4a8bb8183266">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_a8612dac-fdcc-4c23-bbc8-0386aaa074f5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_48992248-6b40-4cf7-8b3c-6fad1e29de91">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      id="F_0cde30c4-e321-4711-9a28-a940b384be2f">&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;33,028,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_e3f44c64-dde4-41e9-a81e-52de4de01b9b"
      decimals="0"
      id="F_42b78d8f-169f-44ae-b9be-ce75bc0daa04"
      unitRef="U_USD">33028000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
