<?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_f1a97664-1281-49b8-80cf-3b55837c2b83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_69052f5e-ebb3-4eb8-b247-0abd0226c570">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_aa07e95b-1971-4fb5-8eee-e519b197ac20">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_8fe9ec42-55a0-4def-a3af-8613c824c473">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_1a274157-70b6-48db-8baa-d8902e47e051">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_f3dd854c-71b5-434a-8af4-1801ad239471">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_dadd013f-d0be-453d-b2c8-104ece0d3791">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_12a46dad-92a5-4d80-9112-19ee5e7627a6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_1811f982-59a1-4a15-8940-e641e099c0a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_46215dac-d58c-4232-b4fc-f0b3c73be93d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f1a97664-1281-49b8-80cf-3b55837c2b83"
      id="F_01909454-2857-4b00-b176-5688063f407f">&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;11,780,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_f1a97664-1281-49b8-80cf-3b55837c2b83"
      decimals="0"
      id="F_4b63b6a1-17da-4f68-9b4e-c6b4ec8dffb6"
      unitRef="U_USD">11780000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>