<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_da9e1ea0-bcbd-4e67-a589-41a1c9f365fc">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_0b0430e4-19b1-41a2-8d8a-d1ca76cfc86d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_3dd867dd-6651-4dab-a875-39bb0c21085d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_dbdced46-3488-46b6-a38c-07c6a0498182">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_9c0bdd54-fbee-45be-9ff6-9e66bcd6f49e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_6aa08d39-e3a1-4057-8241-3fa15e317b05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_6e1fcd9b-50d4-4076-aaf2-e63607d7a6b7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_8a786a74-d970-4f46-825d-1ef1f7b109cf">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_e7df6b0c-ba48-40d9-9fd3-94ac13779b5e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      id="F_f8c3cfbd-3e66-47f9-b2f4-6f65d6e69d1a">&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;300,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_79c98c60-f9fd-4fb1-8213-6980327dc7fb"
      decimals="-3"
      id="F_796d2b8d-ea62-48f4-bc08-6967a2147601"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
