<?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_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_df09d7dd-b39a-4f97-8f67-515b70fdb90f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_aa805bb7-6782-490a-9c54-11d0589f1971">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_62aa8729-b19f-42e0-8c56-b28677893199">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_3d651305-eef6-4211-bea9-076d0c9eb944">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_46ea8862-5e35-4d12-824f-500a95ca3df3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_59f3e210-b1bb-48cd-a399-a6b357457f95">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_dd1d03d5-400a-4ebe-aec1-27387437b63a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_28051da6-ed97-4d1d-8bb6-4f1fba334ce5">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_59c2f0cf-d438-4f57-a54f-3f05f9ffce67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      id="F_ea0a43f6-9930-4b97-b3d7-284e405e8353">&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;3,266,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_eb2bb5b6-8c75-4b1d-b957-4a01b07f9de1"
      decimals="0"
      id="F_f90b3584-0319-4f0c-b693-cf2fa2b0555a"
      unitRef="U_USD">3266000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
