<?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_631d3090-3189-450a-aa71-7145817c2a56">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-01</startDate>
            <endDate>2025-12-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_cc269583-f020-419d-bca1-c208434a6c30">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_3ab98388-6a78-4730-974c-0f313fa9e31d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_f1e07996-88b9-4d30-8136-0b4ae1daf6c8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_ed8cbd12-de72-4104-af75-1fa71ca5b18c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_7afc9095-6f06-4de1-9e35-08278396fce7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_cfb7bc5a-2d5a-4b29-92df-21128414e880">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_c5a223e7-0568-4c8f-bb58-e4c8032ce72e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_952315e9-9376-45c5-976f-2a673eb7c303">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_6a753c28-3cc9-4ee8-a549-3104f133f734">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_631d3090-3189-450a-aa71-7145817c2a56"
      id="F_c7901c2c-5eb1-4058-a0d0-1ec60160fd10">&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;701,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_631d3090-3189-450a-aa71-7145817c2a56"
      decimals="0"
      id="F_1b5e4113-755c-46b5-bf4f-5504c914ad7a"
      unitRef="U_USD">701000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
