<?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_429cb672-b9e2-4739-8693-0bd2b8933d00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_1518732c-c375-435b-9154-382df492757c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_7c76972d-9a20-48c8-9427-13dd53f967c5">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_e63fa745-d359-4122-83d0-6dd3f90cec87">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_46bcf26c-73f6-407d-b1fa-ecc488e37115">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_7f6ef04c-eac1-40ed-95d5-3ced757c2902">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_52b78a46-cc1b-4519-8405-aab6d576001a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_721802a8-2ee2-4896-85fa-6199ea84dda1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_8aab37d5-8eda-43d0-84ac-395f196be159">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_0482a976-0e08-40b6-9dcc-3c336b718307">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_429cb672-b9e2-4739-8693-0bd2b8933d00"
      id="F_44e72f53-11f9-40a8-9e52-cbbb624025ba">&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;162,549,740&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_429cb672-b9e2-4739-8693-0bd2b8933d00"
      decimals="0"
      id="F_49965935-fca6-48cd-a637-917fd25dda3f"
      unitRef="U_USD">162549740</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
